Hi, I have a basic login script that I’ve previously used successfully (since have changed server) but now it won’t load the destination URL after successful login. Any help that you can give would be greatly appreciated. Thanks - James
The code has been included below…
<?php $product= "The Reality Creations"; // products name that appears in login page $passcode[0] = "516204"; // passcode restrcited to max length 12 charactors $redirect_page[0] = "http://www.realitycreations.com/private/test.html"; // redirect url on successful login $passcode[1] = "924537"; $redirect_page[1] = "http://www.realitycreations.com/zxytg"; //description //Add as many passcodes and redirect links using above format //***************************************************************************************** // DO NOT MAKE CHANGE BELOW THIS LINE //***************************************************************************************** $i = 0; foreach ($passcode as $v) { if ( !strcmp($_POST['pass'] , $v) ) { include($redirect_page[$i]); exit; header("Location: ".$redirect_page); } $i++; } ?> Restricted Login Access- RealityCreations.comWelcome to <?php print $product; ?> Private Access Area
Please enter your passcode and click the login button
Enter passcode:
|
Please note, this is a restricted area for existing customers only
If you experience any difficulty you can email us for
assistance at [email protected]