homepage Welcome to WebmasterWorld Guest from 184.73.104.82
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
error message 405 when submitting form
form2email not working
howdoi10



 
Msg#: 4602131 posted 3:22 pm on Aug 15, 2013 (gmt 0)

I use Dreamweaver 8 to edit the page.

I have updated the enquiry page form and tested it but it doesn't work.

I Put the old form back on the website and now that doesn't work. I get an error 405. What has gone wrong?

Code for new page is
[have deleted a number of fields]:

</head>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("sample");
pageTracker._trackPageview();
</script>
<body bgcolor="#0066CC" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">


<tr>
<td align="left" bgcolor="#003399" width="25">
<img src="spacer.gif" width="25" height="2">
</td>

<td align="left" bgcolor="#003399" width="575">
<p>Navigation:- &nbsp; &nbsp;
<a href="index.html">Example</a> &nbsp; &nbsp;
<a href="enquirynewpage.htm">Online Inquiry Form</a> &nbsp; &nbsp;
<a href="mailto:example@ example.com">Email</a>
</td>
</tr>

<form method="post" action="form2email.pl" name="FeedBack_Form">
<input type="hidden" name="recipient" value="example@example.com">
<input type="hidden" name="subject" VALUE="example Enquiry Form">

<tr>
<th width="179" align="right" class="style8" scope="row" text>Title:&nbsp;&nbsp;
</th>
<td width="350">
<span class="style8" >Mr</span>
<input name="Mr" type="radio" value="Mr" />&nbsp;

<span class="style8">Mrs</span>
<input name="Mrs" type="radio" value="Mrs" />&nbsp;

<span class="style8">Ms</span>
<input name="Ms" type="radio" value="Ms" />&nbsp;

<span class="style8">Miss</span>
<input name="Miss" type="radio" value="Miss" />&nbsp;

<span class="style8">Dr</span>
<input name="Dr" type="radio" value="Dr" />&nbsp;

<span class="style8"> Rev </span>
<input name="Rev" type="radio" value="Rev" />
</tr>


<div align="center" colspan="2">
<INPUT TYPE="SUBMIT" NAME="submit" VALUE="- Submit form -" SIZE="25">&nbsp;&nbsp;
<INPUT TYPE="RESET" NAME="reset" VALUE="- Reset form. -" SIZE="25">
</body>
</html>

Hope you can help.

Many thanks in advance

[edited by: engine at 4:02 pm (utc) on Aug 15, 2013]
[edit reason] examplified for privacy [/edit]

 

phranque

WebmasterWorld Administrator phranque us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



 
Msg#: 4602131 posted 8:58 pm on Aug 15, 2013 (gmt 0)

welcome to WebmasterWorld, howdoi10!


a 405 status code means "method not allowed" and if I had to guess something in your configuration or programmng is preventing the form2email.pl script from accepting HTTP POST Requests.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved