Fields.
- DrivenFaster
-
DrivenFaster
- Member since: Nov. 15, 2006
- Offline.
-
- Forum Stats
- Member
- Level 01
- Blank Slate
I want to make my own page where one would have to insert a particular text into the field and if its right, he would move on another page (but the url shouldnt change so ppl dont copy).
Here is what i want my page to be like-
http://hacker.sax777.com/
Its russian but I think you understand, just put 2 in the field and u will get onto the next one
- thecoshman
-
thecoshman
- Member since: Jun. 11, 2006
- Offline.
-
- Forum Stats
- Member
- Level 12
- Blank Slate
you need to proably use JS to look at what they have enterd, if it is currect move onto the next page, if not do nothing.
im not sure how much you dont want the URL to change and stuff. is the next page ment to be a diffrent URL?
| C++: MAIN || AS: MAIN || PHP: MAIN || JAVA: MAIN |
- Maio
-
Maio
- Member since: Oct. 22, 2006
- Offline.
-
- Forum Stats
- Member
- Level 02
- Blank Slate
I'm not totally sure what all you want, but perhaps the below script would help? (Replace [] with <>)
HTML:
[form action="action page" method="post"]
[input name="fieldname" type="text" size="20"]
[/form]
PHP:
if ($_POST['fieldname'] == "the_right_thing_to_say") {
header("Location: pagetogoto.php");
} else {
echo "Sorry, you got it wrong.";
}

