I've installed MAMP on a mac desktop running 10.6.8. I'm using dreamweaver as the IDE to develop my website. I have written my webpage in php, I can preview it in the browser and I can see eveything, so the server and that stuff works. But in my first page i have this line:
session_start();
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (!empty($_POST["Reg_type"])) {
$_SESSION["regtype"]=$_POST["Reg_type"];
header("Location: Page2.php");
var_dump($_SERVER);
}
}
So once the user selects a radio button from the form and clicks submit, it'll take them to the 2nd page. I know that it's going into the loop with the header but for some reason it is unable to redirect to page2. When I click an option and hit submit it just goes to page1 again. I think there might be a problem with the php.ini file dealing with header redirects of sessions, i have no idea. I am a newbie to macs. Does anyone know what the problem could be? Thank you