Hey guys, I'm working up some form validation and am getting this error that I can't diagnose. Here's what I am trying to do in trans.php...
if (!empty($six_digit)) {
header("location: form_success.php");
}
But here is the error I am getting...
Warning: Cannot modify header information - headers already sent by (output started at /srv/www/htdocs/web_test/login.php:4) in /srv/www/htdocs/web_test/trans.php on line 28
I include my login.php file at the trans.php file...
include($DOCUMENT_ROOT .'/web_test/login.php');
I'm not exactly sure what my problem here is. I'm essentially trying to redirect (once validation has taken place) to form_succes.php
Thanks in advance. Any and all help is much appreciated.
Scott