Search the Community
Showing results for tags 'header; 302'.
-
(It works on WAMP, but not on a public server) I have 3 php files: test.php, in which 1/3 tests(forms) are generated, then it is sent to process.php, then in rezult.php process.php: I have 3 header ( ) : $score = 0; $form_id = $_GET['id']; if($form_id='test1'){ $answer1=$_POST['ans1']; $answer2=$_POST['ans2']; ................. header("Location:rezult.php?score=$score&fid=$form_id&r1=$answer1&r2=$answer2..... die(); // I also tried with exit(); } if($form_id='test2'){ $answer1=$_POST['ans1']; $answer2=$_POST['ans2']; ................. header("Location:rezult.php?score=$score&fid=$form_id&r1=$answer1&r2=$answer2..... die(); } if($form_id='test3'){ $answer1=$_POST['ans1']; $answer2=$_POST['ans2']; ................. header("Location:rezult.php?score=$score&fid=$form_id&r1=$answer1&r2=$answer2..... die(); } I don't arrive on result.php, but get this message: Moved Temporarily The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@XXXXXXX.XXX and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/1.0.0-fips mod_bwlimited/1.4 Server at dianag.5gbfree.com Port 80 It's my first php online and I have no idea what else do correct since I followed a tutorial and it worked on WAMP... Thank you in advance!