PDA

View Full Version : Email Form


Imdbombboarder
8-16-05, 07:16 AM
Im having trouble with my form... Heres the code:

<form action="sendmail.php" method="POST" name="Form" id="Form">
</form>
<p></p>
<strong>Name(Full):</strong></p>
<form name="Name" method="post" action="">
<input name="textfield" type="text" maxlength="30">
</form>
<p><strong>Email Address:</strong></p>
<form name="Email" method="post" action="">
<input name="textfield" type="text" maxlength="60">
</form>
<p><strong>Location: </strong></p>
<form name="Location" method="post" action="">
<input name="textfield" type="text" maxlength="40">
</form>
<p><strong>Age:</strong></p>
<form name="Age" method="post" action="">
<input name="radiobutton" type="radio" value="radiobutton">
13-
<br><input name="radiobutton" type="radio" value="radiobutton">
13-17<br>
<input name="radiobutton" type="radio" value="radiobutton">

18-27<br>
<input name="radiobutton" type="radio" value="radiobutton">
28-53<br>
<input name="radiobutton" type="radio" value="radiobutton">
54+<br>
</form>
<p><strong>Do you own "Fs Passengers":</strong></p>
<form name="Fsp" method="post" action="">
<p>
<input name="radiobutton" type="radio" value="radiobutton">
Yes<br>
<input name="radiobutton" type="radio" value="radiobutton">
No</p>
</form>
<p><strong>Years of Flight Sim. Experience:</strong></p>
<form name="Years" method="post" action="">
<p>
<input name="textfield" type="text" maxlength="5">
</p>
<p><strong>What Version of Microsoft Flight Simulator do you own:</strong></p>
<p>
<input name="textfield" type="text" maxlength="4">
</p>
<p><strong>Please write a brief description(if any)of your past experienced with Virtual Airlines: </strong></p>
<p><strong>
<textarea name="textarea" cols="40" rows="10">

Thats just the top half... Anyhow the problem is, is that when the button post is clicked... heres the actual form www.tsmproductions.com/Applications.htm
It gives me this:

Method Not Allowed
The requested method POST is not allowed for the URL /Applications.htm.

Anyone know why its doing this? I can't get it.... Everything looks fine in my sendmail.php script so I dunno... Just let me know! Do I have to install or enable something? Thanks

BerksWebGuy
8-16-05, 08:23 AM
Well, we would need to see your sendmail.php so we can really take a look...but the obvious thing here is you only need one set of <form> tags.

Would look like this:

<form action="sendmail.php" method="POST" name="Form" id="Form">

<p><strong>Name(Full):</strong></p>
<input name="textfield" type="text" maxlength="30">

<p><strong>Email Address:</strong></p>
<input name="textfield" type="text" maxlength="60">

<p><strong>Location: </strong></p>
<input name="textfield" type="text" maxlength="40">

<p><strong>Age:</strong></p>
<input name="radiobutton" type="radio" value="radiobutton"> 13-
<br><input name="radiobutton" type="radio" value="radiobutton"> 13-17<br>
<input name="radiobutton" type="radio" value="radiobutton">
</form>

RTH10260
8-16-05, 08:42 PM
Im having trouble with my form... Heres the code:

<form action="sendmail.php" method="POST" name="Form" id="Form">
</form>
<p></p>
<strong>Name(Full):</strong></p>
<form name="Name" method="post" action="">
<input name="textfield" type="text" maxlength="30">
</form>
<p><strong>Email Address:</strong></p>
<form name="Email" method="post" action="">
<input name="textfield" type="text" maxlength="60">
</form>
[...]
Anyone know why its doing this? I can't get it.... Everything looks fine in my sendmail.php script so I dunno... Just let me know! Do I have to install or enable something? ThanksFirst, you have messed up your form definition, you only have a single </form> at the very end of all fields that belong to the form.

Second, did you play around with a htaccess file that inhibits the POST http command (allows only GET) ?

Third: as seen in the html code of the temporary page you mentioned above, after the hidden field name="redirect" there is a strange php code with a header() cal generated into the html contentl.

Fourth and off topic: snooped quickly thru the website, and I strongly recomment that you don't offer email addresses in machine readable format to harvesting bots !