![]() |
| |||||||
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Senior Member | Basically what I am trying to do, is have a page that is, basically password protected, and that page links to another page... f.i. There would be a page that has a single text box, and a submit button, once if the user clicks submit with the correct word in the box, it will lead them to the next page, if they do it wrong, an alert will pop up, saying something... __________________________________ and the second thing I would like to have is a page that people simply submit there name and it will order there name from 1-(how many total people) Kind of as if it was a race to get to that page... ________________________________ So if anyone could help me out, please let me know, and how much you'd charge for something like this, thanks
__________________ Embrace the heaven we see in hell. A1own.com- Stream / Download: Movies / TV Shows straight to your iPod! Stream/Download Music Straight to your iPhone or PC!! Mobile SMS Bomber!! |
| | |
| Sponsored Links | |
| | #4 (permalink) | |
| Senior Member Join Date: Mar 2009
Posts: 223
Reputation: 26 ![]() cBay Rating: | Quote:
html : Code: <form action="signups.php" method="POST"> Password : <input name="pass" type="password" /><br /> <input type="submit" value="login" /> Code: <?php if ($_POST['pass'] == "lol") { code of redirection } else { echo "error bad password"; } ?>
| |
| | |
| | #5 (permalink) |
| Junior Member Join Date: Aug 2009
Posts: 13
Reputation: 1 ![]() cBay Rating: | You'll probably need to use cookies on the second page to make sure no one finds it and just goes to it without the password for example. index.htm Code: <html> <head> <title></title> </head> <body> <form action="page2.php" method="post"> Word: <input type="text" name="word"><br /> <input type="submit" value="Submit" /> </form> Code: <?
if($_POST['word'] == 'correct word here')
{
setcookie("cookie","cookievalue");
echo '<meta http-equiv="refresh" content="0;URL=page3.php" />';
}
else
{
echo "Wrong password intruder gtfo";
}
?>
Code: <?
if($_COOKIE['cookie'] == 'cookievalue')
{
}
else
{
echo "You have not entered the <a href='index.htm'>word</a> yet</a>";
exit;
}
?>
//Page contents here
?>
|
| | |
| | #7 (permalink) | |
| Junior Member Join Date: Aug 2009
Posts: 16
Reputation: 0 ![]() cBay Rating: | I'm not sure what you need for the second request. Do you want to display their name (and their visit number?) i.e. Quote:
Index.php- PHP Code: PHP Code: If you need something else done just ask (if its small i'll do it for free, otherwise it'll cost a small fee to get it done). Last edited by Jrake; 08-05-2009 at 12:53 AM.. | |
| | |
![]() |
| Tags |
| decent, php, programer |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Decent laptop | brill301 | Computers | 9 | 05-01-2009 12:37 AM |
| FS 5 CL Accounts decent Prices | The Hitman | Sell/Trade Forum | 5 | 07-17-2008 10:35 AM |
| Looking for a decent Notebook Computer | Linkhero | Hardware Hangout | 19 | 03-26-2008 04:22 PM |
| Who is decent with programming? | snowboardbum | Chit Chat | 3 | 01-11-2008 04:35 PM |
| does anyone know a decent program? | simpson127 | Chit Chat | 3 | 12-19-2007 09:16 PM |