chaoswarriors Posted November 11, 2006 Share Posted November 11, 2006 im a noob w/ php, but learning fast!i made a website (html) for a friend in an hour (it pwns face)still learning php so help be appreciated =)[code]<form action="welcome.php" method="get">Name: <input type="text" name="name" />Age: <input type="text" name="age" /><input type="submit" /></form>[/code]When the user clicks the "Submit" button, the URL sent looks something like this:[code]http://www.wowl33tskillzomgpwnd.com/welcome.php?name=Peter&age=37[/code]Is there anyway to scramble it so they cant comprehend it?[code]http://www.wowl33tskillzomgpwnd.com/welcome.php?!adgkn-0234tnm0h2en09u4[/code]Not to be exactly like that, (its just random letters) but where its encoded =Dwelcome.php[quote]Welcome <?php echo $_GET["name"], <?php echo $_GET["age"]; ?>.<br />[/quote] Link to comment https://forums.phpfreaks.com/topic/26897-get-and-encoded-url/ Share on other sites More sharing options...
lilman Posted November 11, 2006 Share Posted November 11, 2006 I am not sure why you want to scramble it; but, if you just want to hide it, use "post" instead of "get". To get the variable on the next page use: $_POST['name'].Hope that helps. Link to comment https://forums.phpfreaks.com/topic/26897-get-and-encoded-url/#findComment-123000 Share on other sites More sharing options...
chaoswarriors Posted November 11, 2006 Author Share Posted November 11, 2006 thanks ;) Link to comment https://forums.phpfreaks.com/topic/26897-get-and-encoded-url/#findComment-123002 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.