I have a form on my page, and I want to send the user to the 'private' part of the page when they've submitted the form.
I want to achieve this by using sessions, but I can't find out how to set a session variable when the form is submitted. This is because the form action is an external page, and when it has been submitted it gets sent back to the page where the form is. The problem is however that I cannot catch that with HTTP_REFERER because it's an https page.
So i have no idea how to do this. Anybody? Thx!
<?php session_start(); if $_SESSION['submit'] == 1 { //show secret stuff } else { //show form }and I want to turn the submit session var into 1 when they press submit