I have a registration form, people fill in the form, click submit, and it goes to the next step. I want to make sure that people started right from the start, and didn't skip pages. Here's my script:
I'm pretty sure I have some sort of syntax error at the linePHP Code:<?php
case 'register2':
//add user details from case 'register' to db
//check to make sure they came from page.php?action=register
if ($HTTP_REFERRER != '$PHP_SELF?action=register')
{
?>
<meta http-equiv="refresh" content="0; url=<?=$PHP_SELF ?>?action=register">
<?
exit;
}
?>
if ($HTTP_REFERRER != '$PHP_SELF?action=register')
I'm not too sure how to correct it...





Thank's firepages 

Bookmarks