PHP Mail form script doesnt like SPACES in textboxes
Posted: Mon Feb 08, 2010 2:05 pm
Hi all,
I'm having some strange trouble with a PHP Mailform script that i'm hoping someone can help me out with.
The website is http://www.scottandbottietheknot.co.uk/ - on the site are 2 mail form scripts. 1 on the homepage, and the other on the RSVP page.
Now the form on the homepage works fine - ignore this form. Its the form on the RSVP page that isn't behaving properly.
(BTW both forms us the same php mail script)
On the RSVP page, if i submit a form with text elements WITH NO SPACES in them, the form submits fine, and the data is e-mailed to the relevant e-mail address. However, if i put in for example "John Doe" in the text box (note the space in the string) then the form doesn't submit.
The really strange thing, is that SPACES DO WORK on the homepage form. As mentioned both pages use the same script, so i don't know how this is even possible or how to fix it.
Please could someone help.
Thanks
Dan
I'm having some strange trouble with a PHP Mailform script that i'm hoping someone can help me out with.
The website is http://www.scottandbottietheknot.co.uk/ - on the site are 2 mail form scripts. 1 on the homepage, and the other on the RSVP page.
Now the form on the homepage works fine - ignore this form. Its the form on the RSVP page that isn't behaving properly.
(BTW both forms us the same php mail script)
On the RSVP page, if i submit a form with text elements WITH NO SPACES in them, the form submits fine, and the data is e-mailed to the relevant e-mail address. However, if i put in for example "John Doe" in the text box (note the space in the string) then the form doesn't submit.
The really strange thing, is that SPACES DO WORK on the homepage form. As mentioned both pages use the same script, so i don't know how this is even possible or how to fix it.
Please could someone help.
Thanks
Dan