Form help! Completely lost!

Sorry guys but one last thing -
I'm having redirect on successful forms problems.

when it tries to redirect the user i get the message:

Code:
Notice: Undefined index: email in /var/www/html/nvform.php on line 141

Notice: Undefined variable: monthnameactual in /var/www/html/nvform.php on line 141

Notice: Undefined index: required in /var/www/html/nvform.php on line 146

Notice: Undefined index: sort in /var/www/html/nvform.php on line 221

Notice: Undefined index: sort in /var/www/html/nvform.php on line 221

Notice: Undefined index: sort in /var/www/html/nvform.php on line 221

Notice: Undefined index: sort in /var/www/html/nvform.php on line 221

Notice: Undefined index: sort in /var/www/html/nvform.php on line 221

Notice: Undefined index: sort in /var/www/html/nvform.php on line 221

Notice: Undefined index: sort in /var/www/html/nvform.php on line 221

Notice: Undefined index: sort in /var/www/html/nvform.php on line 239

Notice: Undefined variable: SEND_email in /var/www/html/nvform.php on line 259

Notice: Undefined variable: SEND_email in /var/www/html/nvform.php on line 259

Notice: Undefined index: subject in /var/www/html/nvform.php on line 265

Notice: Undefined index: success_page in /var/www/html/nvform.php on line 270


Your form has been submitted successfully!

Notice: Undefined variable: footer in /var/www/html/nverror.php on line 16
 
Those are down to poor coding, but it's nothing that will break the script as they are not 'fatal' or 'warning' errors, just notices.Your PHP error reporting level is set at the highest, which isn't always appropriate for a production site.

At the top of your script, add:
Code:
error_reporting(E_ALL^E_NOTICE);
You can adjust it elsewhere, but that's probably the simplest solution here.
 
Back
Top Bottom