Be a Supporter!

Fields.

  • 336 Views
  • 2 Replies
New Topic Respond to this Topic
DrivenFaster
DrivenFaster
  • Member since: Nov. 15, 2006
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Fields. 2006-11-15 10:43:25 Reply

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
Response to Fields. 2006-11-15 11:17:58 Reply

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?

Maio
Maio
  • Member since: Oct. 22, 2006
  • Offline.
Forum Stats
Member
Level 02
Blank Slate
Response to Fields. 2006-11-15 13:48:25 Reply

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.";
}