![]() |
|
| |||||||
| Notices |
| Scripts & Fantastico Discussions, help and troubleshooting scripts included is adding popular Fantastico scripts to your website such as guest books, osCommerce shopping cart, polls, content management systems etc… |
![]() |
| | LinkBack | Thread Tools |
|
#1
| ||||
| ||||
| <?php // Receiving variables @$Name = addslashes($_POST['Name']); @$Email = addslashes($_POST['Email']); @$username = addslashes($_POST['usernamel']); @$password = addslashes($_POST['password']); // Validation if (strlen($Name) == 0 ) { header("Location: name_error.html"); exit; } if (! ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $Email)) { header("Location: email_error.html"); exit; if (strlen($password) == 0 ) } header("Location: error_password.html"); exit; if (strlen($username) == 0 ) { header("Location: error_username.html"); exit; } //Sending Email to form owner $pfw_header = "From: $Email\n" . "Reply-To: $Email\n"; $pfw_subject = "Order"; $pfw_email_to = "jabird60********.com"; $pfw_message = "Name: $Name\n" . "Email: $Email\n" . "Descrption: $Descrption\n"; . "password: $password\n"; . "username: $username\n"; *****($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ; header("Location: orderconf.html"); can anybody see if there is something wong with that script,it says that there is a error on line 18 but i cant figer it out |
|
#2
| ||||
| ||||
| These lines if (! ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $Email)) { header("Location: email_error.html"); exit; if (strlen($password) == 0 ) } header("Location: error_password.html"); exit; should be if (! ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $Email)) { header("Location: email_error.html"); exit; } if (strlen($password) == 0 ) { header("Location: error_password.html"); exit; }
__________________ Register/Login Script Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script |
|
#3
| ||||
| ||||
| Moving to script forum.
__________________ VodaHost Your Website People! 1-302-283-3777 North America / International 07092887580 / United Kingdom Military Ranking System Explained Click Here to take the royal VodaHost Tour Click Here for the VodaHost Help Centre & Tutorials Got a question? - Try a forum search! Available at the top of every page! |