GeoTop Posted November 18, 2006 Share Posted November 18, 2006 Hi,I want to make a site similiar to this.http://hacker.sax777.com/The way it works is, when there is proper text input in the field, it goes to the next page without the url changing, if its wrong, it displays an error message. I'd be very thankfull if someone would scrap up that small piece of code for me, Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/ Share on other sites More sharing options...
GeoTop Posted November 18, 2006 Author Share Posted November 18, 2006 btw the link is russian, but just put 2 in the field and youll get how it works. Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-126737 Share on other sites More sharing options...
GeoTop Posted November 18, 2006 Author Share Posted November 18, 2006 anyone? Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-126751 Share on other sites More sharing options...
rotwyla98 Posted November 18, 2006 Share Posted November 18, 2006 You need javascript for that.ORYou can have it reload the page and display the error. Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-126754 Share on other sites More sharing options...
GeoTop Posted November 18, 2006 Author Share Posted November 18, 2006 Code? Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-126759 Share on other sites More sharing options...
rotwyla98 Posted November 18, 2006 Share Posted November 18, 2006 [code=php:0]<?if($_POST['code'] != "answer"){echo "Wrong password!";?><form method="POST" action="current-page.php"><input type="text" value="" name="code"><input type="submit" value="Submit" name="submit"></form><?}else{header("Location:http://www.dom.com/nextpage.php");}?>[/code] Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-126768 Share on other sites More sharing options...
GeoTop Posted November 19, 2006 Author Share Posted November 19, 2006 Sorry, I'm a bit newbie in all of this.I just pasted all that info in dreamweaver and it didnt seem to work, my guess is I have to make separate Php files, which I dont know how to. Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-127077 Share on other sites More sharing options...
GeoTop Posted November 19, 2006 Author Share Posted November 19, 2006 Anyone? Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-127100 Share on other sites More sharing options...
fert Posted November 19, 2006 Share Posted November 19, 2006 [code]<?phpfunction Redirect($time, $topage) {echo "<meta http-equiv=\"refresh\" content=\"{$time}; url={$topage}\" /> ";}if($_POST['code'] != "answer"){echo "Wrong password!";?><form method="POST" action="current-page.php"><input type="text" value="" name="code"><input type="submit" value="Submit" name="submit"></form><?php}else{Redirect(0,"http://www.dom.com/nextpage.php");}?>[/code] Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-127109 Share on other sites More sharing options...
GeoTop Posted November 20, 2006 Author Share Posted November 20, 2006 I put that code in dreamweaver and it give me this -"; } if($_POST['code'] != "answer"){ echo "Wrong password!"; ?>---And what is nextpage.php? Should I create it or something? Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-127390 Share on other sites More sharing options...
GeoTop Posted November 20, 2006 Author Share Posted November 20, 2006 anyone? Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-127420 Share on other sites More sharing options...
GeoTop Posted November 20, 2006 Author Share Posted November 20, 2006 anyone at all? Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-127507 Share on other sites More sharing options...
GeoTop Posted November 21, 2006 Author Share Posted November 21, 2006 anyone??? Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-127827 Share on other sites More sharing options...
SetToLoki Posted November 21, 2006 Share Posted November 21, 2006 I know this doesn't help your cause much, but it seems you are trying to run before you can walk, there are some great tiutorials [url=http://www.phpfreaks.com/tutorial_cat/8/Basics-&-Beginner-Tutorials.php]here[/url] on picking up php, after reading through some of them check back at the above pasted code and it may make more sense. Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-127846 Share on other sites More sharing options...
GeoTop Posted November 21, 2006 Author Share Posted November 21, 2006 id study tutorials, but Im not planning ot be a PHP guy, im just a designer. Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-127872 Share on other sites More sharing options...
GeoTop Posted November 21, 2006 Author Share Posted November 21, 2006 anyone? Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-128086 Share on other sites More sharing options...
GeoTop Posted November 22, 2006 Author Share Posted November 22, 2006 anyone? Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-128395 Share on other sites More sharing options...
GeoTop Posted November 22, 2006 Author Share Posted November 22, 2006 ANYONE AT ALL? Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-128462 Share on other sites More sharing options...
GeoTop Posted November 22, 2006 Author Share Posted November 22, 2006 Someone plz help Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-128488 Share on other sites More sharing options...
GeoTop Posted November 22, 2006 Author Share Posted November 22, 2006 someone help plz or im dead Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-128569 Share on other sites More sharing options...
kenrbnsn Posted November 22, 2006 Share Posted November 22, 2006 [quote]id study tutorials, but Im not planning ot be a PHP guy, im just a designer.[/quote]If you want someone to write the code for you, post in the freelancers forum and pay someone to do it.Ken Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-128579 Share on other sites More sharing options...
GeoTop Posted November 22, 2006 Author Share Posted November 22, 2006 someone already wrote a code here, im only asking on what to do with it. Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-128582 Share on other sites More sharing options...
GeoTop Posted November 22, 2006 Author Share Posted November 22, 2006 come on please help im in a desparate situation Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-128636 Share on other sites More sharing options...
kenrbnsn Posted November 22, 2006 Share Posted November 22, 2006 It looks like part of your problem has to do with the interaction of PHP & Dreamweaver. I suggest you look at the forum that deals with Dreamweaver and see if there is an answer there. I don't use it, so I can't help you.Ken Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-128645 Share on other sites More sharing options...
GeoTop Posted November 22, 2006 Author Share Posted November 22, 2006 whoever wrote it surely knows how to make it work. Link to comment https://forums.phpfreaks.com/topic/27707-radio-button-with-a-bit-of-php/#findComment-128676 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.