Ilovetopk Posted May 11, 2010 Share Posted May 11, 2010 I've worked with php, but I've never really found something about this in tutorials. How do you make a webpage work like this: you have a store at http://yoursite.com/store.php and someone looks at an item and the address bar says this: http://yoursite.com/store.php?item="item" [*]how does the ?item="item" work? [*]how can i use it in my coding (make pages that that show that)? [*]Does it involve a database? I have more questions to, but start with these. Thanks, Ilvoetopk. Quote Link to comment https://forums.phpfreaks.com/topic/201421-okay-silly-question-httpyoursitecomstorephpitemitem/ Share on other sites More sharing options...
Mchl Posted May 11, 2010 Share Posted May 11, 2010 Variables posted in URL string are available in $_GET[] array http://php.net/manual/en/reserved.variables.get.php Quote Link to comment https://forums.phpfreaks.com/topic/201421-okay-silly-question-httpyoursitecomstorephpitemitem/#findComment-1056777 Share on other sites More sharing options...
Ilovetopk Posted May 11, 2010 Author Share Posted May 11, 2010 Thanks! I told you it was a still question! Quote Link to comment https://forums.phpfreaks.com/topic/201421-okay-silly-question-httpyoursitecomstorephpitemitem/#findComment-1056785 Share on other sites More sharing options...
Mchl Posted May 11, 2010 Share Posted May 11, 2010 Not at all. Beginner's question maybe, but not silly. Quote Link to comment https://forums.phpfreaks.com/topic/201421-okay-silly-question-httpyoursitecomstorephpitemitem/#findComment-1056802 Share on other sites More sharing options...
Jiblix Posted May 12, 2010 Share Posted May 12, 2010 Just remember to escape the charactors on ANY $_GET['array']; Because people can use these to very easily 'hack' your website if they aren't secured. Quote Link to comment https://forums.phpfreaks.com/topic/201421-okay-silly-question-httpyoursitecomstorephpitemitem/#findComment-1056854 Share on other sites More sharing options...
Mchl Posted May 12, 2010 Share Posted May 12, 2010 Just remember to escape the charactors on ANY $_GET['array']; Because people can use these to very easily 'hack' your website if they aren't secured. That depends on what you want to do with this data. Blindly escaping everything was how magic_quotes_gpc works, and it's now being deprecated. Quote Link to comment https://forums.phpfreaks.com/topic/201421-okay-silly-question-httpyoursitecomstorephpitemitem/#findComment-1057000 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.