Form validation

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have a form on my website
( ). When the user submits
the form various validation checks are completed by another PHP script.
If any of these fail, the user is redirected back to the form. The
content that they submitted is retained and sent back in the URL and
picked up by another script and inserted into the fields.

My problem is with memo fields as this method of returning the data
seems to chop off anything after the first newline or carriage return.

I presume it would be better to POST this information back but how do I
do this from PHP without a SUBMIT button???

Many thanks for your continued help.

Hope all that makes sense - see the website which should clarify the

p.s. the &frm3~5 in the link simply ensures that my name appears in the
"TO" box so if you test the script spurious messages don't go to my

Re: Form validation

*** escribió/wrote (10 Feb 2005 06:47:58
Quoted text here. Click to load it

Do you use urlencode()? URLs cannot contain, among many other chars,
carriage returns.

-+ Álvaro G. Vicario - Burgos, Spain
+- (la web de humor barnizada para la intemperie)
++ Manda tus dudas al grupo, no a mi buzón
-+ Send your questions to the group, not to my mailbox

Re: Form validation

Thank you so much.

The URLENCODE function has solved the problem.

Re: Form validation

 >how do I do this from PHP without a SUBMIT button???

print "<script> document.formName.submit(); </script>"; wrote:

Quoted text here. Click to load it

Site Timeline