blank page after form submission

This is where you share YOUR scripts with others

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 101
Joined: Tue Jul 05, 2011 5:41 am
Location: Portugal

Mon Sep 26, 2011 2:42 am


You dont seam to be sending any email. mail(...) missing

As far as I can see, the blank page means that everything is OK (no errors doesnt mean it works)

New php-forum User
New php-forum User
Posts: 10
Joined: Sun Oct 23, 2011 12:38 pm

Sun Oct 23, 2011 2:50 pm

Well, you must have a mail() function, this function that will send the data entered by your users to your email address. if there's a blank page, it means either there's no error and in this case it should display a success message, but i think there's an error but it's not shown maybe because you didn't declare, or you didn't echo it to be displayed, i noticed that in your : $string_exp = "/^[A-Za-z .'-]+$/"; and you made this condition for age : if(!preg_match($string_exp,$Age)). this is wrong, because age should be a number (integer) not a text (string), so it should be $string_exp = "/^[0-9]+$/"; and you can use this function : if(is_numeric($age)).

Good Luck.

Post Reply