Form Validation Help
- Started
- Last post
- 4 Responses
- elPaulo
Having a real hard time validating the select form field on this.
http://mpsportsclub.com/campaign…
Every field validates fine except that one of course. I have been trying using javascript in DW (more of a designer than a dev)..... I had these landing pages dumped in my lap yesterday, and of course are due today.
Any help is VERY effing appreciated.
Any ideas?
- Shaney0
PHP, this should work:
if(isset($_POST['submit'])) //handle form
{
if($_POST['Member/Non-Member...
{
$title=$_POST['Member/Non-Member...
}
else
{
$Member/Non-Member=false;
$Member/Non-Member.='You forgot to enter your title!';//error message
}JavaScript: this should be quick and dirty to slap on:
http://javascript.internet.com/f…
- elPaulo0
Thanks Shaney!
Question is, how do I implement it? I am pretty noob to .php.....
- welded0
Sorry, no time to be of any actual help, but that PHP will do nothing but throw errors.
- Shaney0
Paulo, the above was just a snippet, I've put a working sample php page in a zip so you can copy and paste what you need into your code:
http://www.mediafire.com/?j3kwit…Oh yeah, no errors. hope that is actual help.