Submit Your Article Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-24-2007, 06:40 AM
WebProWorld New Member
 
Join Date: Sep 2006
Location: uk
Posts: 3
spongebob RepRank 0
Question Help me with my Form - Textarea ??

How Dee Do, from me to you,,,

I am having some trouble with this simple online form, I want to leave a textarea or comments box for people to leave my company feedback. here is my code.

<form action="MAILTO:richard.hargreaves@assigns.co.uk" method="post"

enctype="text/plain">

<h3>Please tell others about your experiance<br>This form sends your feedback to

Assigns Ltd</h3>
First Name:<br><input type="text" name="name"
size="50">
<br>
Last Name:<br><input type="text" name="name"
size="50">
<br>
Company:<br><input type="text" name="company"
size="50">
<br>
eMail:<br><input type="text" name="mail"
size="50">
<br>
Comment:<br><textarea rows="10" cols="50"></textarea>
<br><br>
<input type="submit" value="Send">
<input type="reset" value="Reset">

</form>

The comment: <textarea> at the bottom is not appearing in the email returned when clicking submit. I have tried adding an input attribute but that merely creates a small single line text box next to my big text area.

Any ideas on how I can increase the size of a text box to multi line, or indeed get the text area to work and send the information to the email?

Many Thanks
Richard
Reply With Quote
  #2 (permalink)  
Old 05-24-2007, 07:37 AM
WebProWorld Veteran
 
Join Date: Nov 2004
Location: UK
Posts: 513
pagetta RepRank 2
Default Re: Help me with my Form - Textarea ??

your textarea doesn't appear to have a name this might help so that the code has a name to pass through to your email.
Reply With Quote
  #3 (permalink)  
Old 05-24-2007, 07:41 AM
sands's Avatar
WebProWorld Veteran
 
Join Date: Sep 2005
Location: Kerala, India
Posts: 395
sands RepRank 1
Default Re: Help me with my Form - Textarea ??

The reason you are not receiving any text typed into the textarea is because you have not added a name to it. For example in the email input box you have "name='mail'". Similarly you need a name for the comment field to work. For instance name='comment'.
__________________
My Nook | My Biz | My Photos
Reply With Quote
  #4 (permalink)  
Old 05-24-2007, 07:52 AM
WebProWorld New Member
 
Join Date: Sep 2006
Location: uk
Posts: 3
spongebob RepRank 0
Smile Re: Help me with my Form - Textarea ??

Absolutely fantastic, how simple was that, new working code for all others in need is:

<form action="MAILTO:richard.hargreaves@assigns.co.uk" method="post" enctype="text/plain">

<h3>Please tell others about your experiance<br>This form sends your feedback to Assigns Ltd</h3>
First Name:<br><input type="text" name="name"
size="50">
<br>
Last Name:<br><input type="text" name="name"
size="50">
<br>
Company:<br><input type="text" name="company"
size="50">
<br>
eMail:<br><input type="text" name="mail"
size="50">
<br>
Comment:<br><textarea rows="10" cols="50" name="comment"></textarea>
<br><br>
<input type="submit" value="Send">
<input type="reset" value="Reset">

</form>

so just 'name="comment"

Thanks guys
Reply With Quote
  #5 (permalink)  
Old 05-24-2007, 08:15 PM
DrTandem1's Avatar
WebProWorld 1,000+ Club
 
Join Date: Oct 2003
Location: Encinitas, CA
Posts: 1,830
DrTandem1 RepRank 2
Default Re: Help me with my Form - Textarea ??

Yes, that should do the trick. However, using such a form will no doubt give you a ton of spam.
__________________
DrTandem's San Diego Web Page Design, drtandem.com
Reply With Quote
  #6 (permalink)  
Old 05-25-2007, 12:59 AM
WebProWorld Pro
 
Join Date: Aug 2006
Location: Cary, Illinois
Posts: 267
getmea RepRank 1
Default Re: Help me with my Form - Textarea ??

Having the mailto: email address hard-coded will definitely get you spam one day. Dr. Tandem and a few of us discussed hijacked forms from spammers recently. Give it a reading.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using textArea for content dakster Search Engine Optimization Forum 6 10-31-2006 08:00 AM
Textarea problems DarrenPWS Web Programming Discussion Forum 1 05-19-2006 05:48 AM
php form validation of textarea ozchris Web Programming Discussion Forum 7 09-09-2005 04:16 AM
How to insert a variable ANYWHERE in a TEXTAREA of a form? Andre_Vas Web Programming Discussion Forum 1 03-29-2005 07:02 PM
Textarea and PHP. Antinaris Web Programming Discussion Forum 5 04-06-2004 05:37 PM


All times are GMT -4. The time now is 03:57 PM.



Search Engine Optimization by vBSEO 3.3.0