Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Nov 2005
    Posts
    329
    Thanks
    3
    Thanked 19 Times in 19 Posts

    Textarea info entered in form does not appear in reply

    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!

    Code:
    <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>

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder
    Join Date
    Nov 2005
    Posts
    329
    Thanks
    3
    Thanked 19 Times in 19 Posts
    Thanks a lot! I corrected both the problems, using some JavaScript I found as well, and think it's working fine now.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •