jaic Posted October 30, 2006 Share Posted October 30, 2006 Hi, I am have only recently started PHP, and I have added some functions to my website, but I cant get itto do what I want at the later stage after "LOGIN".Can anyone help?This is what i want to do on my site www.jaicpromotions.co.uk, go to 4DJ's, then LOGIN, using this:User: jaicpromotionsPassword: superdjProblem 1The next screen i want to be black background and "ACCESS DJ AREA" in orange in the middle of the page, underlinedProblem 2If you DONT submit the correct USERID and PASSWORD, then the same with "ACCESS DENIED" in orange in the middle of the page, underlinedThe Code I have at the moment, is:<?phpsession_start();$_SESSION['username'] = $_POST['user'];$_SESSION['userpass'] = $_POST['pass'];$_SESSION['authuser'] = 0;//check username and password informationif (($_SESSION['username'] == 'jaicpromotions') and ($_SESSION['userpass'] == 'superdj')) {$_SESSION['authuser'] = 1;} else {echo "ACCESS DENIED"; exit();}?><html><head><title>Get To DJ Exclusive Page</title></head><body><?php$myfavrecord = urlencode("Untouchable 3");echo "<a href='\\/www.jaicpromotions.co.uk/4djs.htm'>";echo "ACCESS DJ AREA";echo "[/url]";?></body></html>can anyone please help me??? your help will be greatly appreciated! Quote Link to comment https://forums.phpfreaks.com/topic/25617-colour-me-this-colour-me-that/ Share on other sites More sharing options...
wildteen88 Posted October 30, 2006 Share Posted October 30, 2006 remove the [code=php:0]exit();[/code] function after [code=php:0]echo "ACCESS DENIED";[/code] in your code. Quote Link to comment https://forums.phpfreaks.com/topic/25617-colour-me-this-colour-me-that/#findComment-116907 Share on other sites More sharing options...
jaic Posted October 30, 2006 Author Share Posted October 30, 2006 thanks for your reply but . . . :-[ that removes the switch between the two outcomes of accept and reject, they are then strung together. . . perhaps, is there a way of making the unsuccessful entry response show a small phrase under the login box, such as: " Not Recognised ", try again??? Or some thing like this?Jai Quote Link to comment https://forums.phpfreaks.com/topic/25617-colour-me-this-colour-me-that/#findComment-116921 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.