purpleCRAYON Posted April 26, 2009 Share Posted April 26, 2009 <?php $link = "http://login.website.com/password.php?nextURL=http%3A//member.website.com/myProfile.php&password="; ?> That's the website. I want to make a form, so that after "&password=" it will put it there. So basically like this: - Website; www.mydomain.com (Already have) - When you go to this website, there will be a form asking you for your password. NOT username. - When you put in your password, and enter it will redirect to this URL: "http://login.website.com/password.php?nextURL=http%3A//member.website.com/myProfile.php&password=" - Say we used the password "php" it would redirect to: "http://login.website.com/password.php?nextURL=http%3A//member.website.com/myProfile.php&password=php". Anybody have any idea how to do this? Link to comment https://forums.phpfreaks.com/topic/155695-go-to-link-password-need-help-making-a-form/ Share on other sites More sharing options...
Mchl Posted April 26, 2009 Share Posted April 26, 2009 Use method="get" in your form Link to comment https://forums.phpfreaks.com/topic/155695-go-to-link-password-need-help-making-a-form/#findComment-819487 Share on other sites More sharing options...
purpleCRAYON Posted April 26, 2009 Author Share Posted April 26, 2009 Here is my updated source: <form action="http://login.mysite.com/password.nhn?nextURL=http%3A//member.mysite.com/myProfile.nhn&" method="get"> Password: <input type="text" name="password" /> <input type="submit" /> </form> But it is sending me to: http://login.mysite.com/password.nhn?password=zzzz321 Any ideas? Link to comment https://forums.phpfreaks.com/topic/155695-go-to-link-password-need-help-making-a-form/#findComment-819493 Share on other sites More sharing options...
jackpf Posted April 26, 2009 Share Posted April 26, 2009 I think Mchl means something like this: <form action="http://login.website.com/password.php" method="get"> <input type="hidden" name="nextURL" value="http%3A//member.website.com/myProfile.php" /> <input type="password" name="password" /> <input type="submit" /> </form> Or not. Whatever. Link to comment https://forums.phpfreaks.com/topic/155695-go-to-link-password-need-help-making-a-form/#findComment-819494 Share on other sites More sharing options...
purpleCRAYON Posted April 26, 2009 Author Share Posted April 26, 2009 I think Mchl means something like this: <form action="http://login.website.com/password.php" method="get"> <input type="hidden" name="nextURL" value="http%3A//member.website.com/myProfile.php" /> <input type="password" name="password" /> <input type="submit" /> </form> Or not. Whatever. Trying that now, couldn't find an example of it on the web, so I needed to do it the way above. Edit: I think I got it to work, i'm getting some friends to test it now. Link to comment https://forums.phpfreaks.com/topic/155695-go-to-link-password-need-help-making-a-form/#findComment-819495 Share on other sites More sharing options...
purpleCRAYON Posted April 26, 2009 Author Share Posted April 26, 2009 I can't seem to find the edit button, sorry 5AM. Anyways, does anybody know a way to obsfucate URLs? I don't want people to be able to find the URL inside of this. I remember free site that you would make a "short url" but it wasn't just a redirect, it actually hid the URL you were on & visiting. Link to comment https://forums.phpfreaks.com/topic/155695-go-to-link-password-need-help-making-a-form/#findComment-819498 Share on other sites More sharing options...
jackpf Posted April 26, 2009 Share Posted April 26, 2009 You could use base64_encode() / base64_decode() and file_get_contents()? Something like that anyway. Link to comment https://forums.phpfreaks.com/topic/155695-go-to-link-password-need-help-making-a-form/#findComment-819502 Share on other sites More sharing options...
purpleCRAYON Posted April 26, 2009 Author Share Posted April 26, 2009 You could use base64_encode() / base64_decode() and file_get_contents()? Something like that anyway. I've decided to let it unprotected, it's for a VIP section on a forum i'm on. Link to comment https://forums.phpfreaks.com/topic/155695-go-to-link-password-need-help-making-a-form/#findComment-819504 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.