...

View Full Version : Textarea info entered in form does not appear in reply



Avril
05-26-2006, 07:49 AM
Hi!

I'm trying to use a form where, besides the usual name, address, etc., the user fills in information in a textarea before sending it back. This code works fine for the name, etc., but the info in the textarea does not show up in the reply.

Can this be done, and if so, could someone point me in the right direction? Thank you!



<form method="post" ENCTYPE="text/plain" ACTION="mailto:myname@mywebsite.com?subject=My message"></td></tr>
<tr colspan="2">
<td width= "170"><font size="4" color="white">First name: </td><td><input type="text" size="40" tabindex=1 name="firstname"></td></tr>
<tr colspan="2">
<td width="170"><font size="4" color="white">Surname:&nbsp;&nbsp;</td><td><input type="text" size="40" tabindex=2 name="surname"></td></tr>
<tr colspan="2">
<td width="170"><font size="4" color="white">Address 1: </td><td><input type="text" size="40" tabindex=3 name="address1"></td></tr>
<tr colspan="2">
<td width="170"><font size="4" color="white">Address 2: &nbsp;</td><td><input type="text" size="40" tabindex=4 name="address2"></td></tr>
<tr>
<td width="170"><font size="4" color="white">Zip Code:&nbsp;&nbsp;</td><td><input type="text" size="40" tabindex=5 name="zipcode"></td></tr>
<tr colspan="2">
<td width="170"><font size="4" color="white">City: &nbsp;</td><td><input type="text" size="40" tabindex=6 name="city"></td></tr>
<tr colspan="2">
<td width="170"><font size="4" color="white">My e-mail addresss: &nbsp;</td><td><input type="text" tabindex=7 size="40" name="email"></td></tr>
<tr colspan="2">
<td width="170"><font size="4" color="white">Telephone No.: &nbsp;</td><td><input type="text" tabindex=7 size="40" name="email"></td></tr>
<tr colspan="2">
<td colspan="2"><br><textarea cols="70" rows="10"; style="background: skyblue; font-family: ariel, times, sans-serif; font-size: 16px; color:#153355">(Type your message here.)</textarea></td></tr></table>
<tr colspan="2">
<td align="center"><input type="reset" name="redo" value="Reset">&nbsp;&nbsp;&nbsp;<input type="submit" name="form" value="Send Now">
</form>

_Aerospace_Eng_
05-26-2006, 08:28 AM
Sure if you gave the textarea a name just like your other inputs. Just like to point out that your Telephone No. input has the same name as your email input. mailto: is also not the best method for sending information especially not information as personal that you are trying to get.

Avril
05-26-2006, 07:31 PM
Thanks a lot! I corrected both the problems, using some JavaScript I found as well, and think it's working fine now.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum