View Full Version : Form submission via email problem

02-27-2003, 02:29 PM
I have a html form, with textarea's, which calls my php to submit the form through email. I have the rows set at 5 and although you can enter more text than 5 rows, it will not submit the form to email unless the textarea's contain 5 or less rows of text. I do not want to display more than 5 rows on my form, but I want the user to be able to submit more than 5 rows.

This is an example of my text area code

<textarea name="question9" cols="50" rows="5" class="normaltext">

Here is my PHP code:

<?phpmail("xxx@xxx.com", "Request for Report", "User Name:\n$requiredname\n\nE-mail address:\n$email\n\nPhone Number:\n$requiredphone\n\nDate Needed By:\n$requireddateneeded\n\nScreen this information usually found / names of the tables used:\n$question1\n\nInformation to include on the report / order:\n$question2\n\nSort order:\n$question3\n\nSub-totals / what level(s):\n$question4\n\nFilters:\n$question5\n\nPrompts / default values:\n$question6\n\nName of similar report already out there:\n$question8\n\nTesting parameters and expected results:\n$question9\n\nAdditional Comments:\n$question10\n\n", "From: $email\r\n"."Reply-To: $email");?>

02-27-2003, 03:20 PM
what is your forms method?

Neither the mail() function, nor the textarea would place a restriction on how many lines could go through, so I surmise the problem lies elsewhere.

If you are using method="get" then that's the problem - use "post"

02-27-2003, 04:19 PM
That did the trick. I didn't even have a method defined. Thank you for your help, I've been beating my head with this for a while!:thumbsup:

02-27-2003, 06:43 PM
for your information:

get method: restricts passed data to 256 bytes due to using the URL as a medium for passing the information

post method: no restrictions.

02-27-2003, 06:44 PM
You learn something new everyday. Thanks for the information!