FlamingPC Posted February 22, 2015 Share Posted February 22, 2015 Ok, so when you go to google and serach something, the url is: google.com/search?q=My+Search I want to do something on my website like: MyWebsite.com/download?file=1 How? I dont know if this has to do with php, but i think it might. I'v search a lot too. Thanks in Advanced! Quote Link to comment https://forums.phpfreaks.com/topic/294824-php-url-input/ Share on other sites More sharing options...
cyberRobot Posted February 23, 2015 Share Posted February 23, 2015 Are you just wondering how to use the "file" variable? If so, you would use $_GET['file'] on the download page. More information about $_GET can be found here: http://php.net/manual/en/reserved.variables.get.php Quote Link to comment https://forums.phpfreaks.com/topic/294824-php-url-input/#findComment-1506504 Share on other sites More sharing options...
rwhite35 Posted February 23, 2015 Share Posted February 23, 2015 (edited) Also take a look at url encoding which help setup the $_GET variables you plan to pass along to the next script. Specially for strings. Edited February 23, 2015 by rwhite35 Quote Link to comment https://forums.phpfreaks.com/topic/294824-php-url-input/#findComment-1506528 Share on other sites More sharing options...
FlamingPC Posted February 23, 2015 Author Share Posted February 23, 2015 thank you! Quote Link to comment https://forums.phpfreaks.com/topic/294824-php-url-input/#findComment-1506534 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.