Posts: 253
Location: Calgary, Alberta, Canada
|
I go about things like this using a hidden variable.
On your first form page, you would include a hidden variable like so:
HTML Code:
<input type="hidden" value="1" name="check_formsubmit">
And then, on the next page (the one you want to protect), you would have to do a check to see if this variable has been passed. But first, you would need to create that variable in PHP, like this:
PHP Code:
$check_formsubmit = $_POST['check_formsubmit'];
The part that checks if the form has been submitted would look like:
PHP Code:
if ($check_formsubmit == 1) { *Page code here* }
else { echo "You must complete the first part of our forum first! *link here*"; }
I hope this works for you, as I was pulling this all from my head, and I'm still relatively new with PHP. If you have any problems with this, I can check it against the code I use for this kind of thing.
Hope this helps!
__________________
Signature Coming Soon! :) Please login or register to view this content. Registration is FREE
|