Hi guys,
could anybody please give my a hand??
Currently I'm programming a web-based environment that is meant to help in programming switches (hehe, this is not important at all!!) I'm very much a beginner but up to now everything more or less has worked out, so i cannot complain.
At the moment I've already programmed one welcoming html page with a kind of formular that when correctly filled out calls a php script stored in another file.. this secoond script, which main structure is switch-case based on gets more or less the whole work done (besides a mysql connection) but in one situation i would like to redirect the user to the previous html page and then is when everything gets messed up...
I've already tried the header command that I've found here, namely:
<?
$url=" header ("Location: ".$url);
?>
but it doesn't help... to me, it looks like that when calling a script from an html this redirection stuff gets stuck with the script page. This is the warning text shows:
Warning: Cannot modify header information - headers already sent by (output started at /home/Kitus/workspace/prova/database_part.php:3) in /home/Kitus/workspace/prova/database_part.php on line 100
line 100 is where this redirection is called.
Sorry for this long post but with my English i don't know how to make myself clear in a shorter manner...
Thank you very much,
Kitus
could anybody please give my a hand??
Currently I'm programming a web-based environment that is meant to help in programming switches (hehe, this is not important at all!!) I'm very much a beginner but up to now everything more or less has worked out, so i cannot complain.
At the moment I've already programmed one welcoming html page with a kind of formular that when correctly filled out calls a php script stored in another file.. this secoond script, which main structure is switch-case based on gets more or less the whole work done (besides a mysql connection) but in one situation i would like to redirect the user to the previous html page and then is when everything gets messed up...
I've already tried the header command that I've found here, namely:
<?
$url=" header ("Location: ".$url);
?>
but it doesn't help... to me, it looks like that when calling a script from an html this redirection stuff gets stuck with the script page. This is the warning text shows:
Warning: Cannot modify header information - headers already sent by (output started at /home/Kitus/workspace/prova/database_part.php:3) in /home/Kitus/workspace/prova/database_part.php on line 100
line 100 is where this redirection is called.
Sorry for this long post but with my English i don't know how to make myself clear in a shorter manner...
Thank you very much,
Kitus