Codenames Posted August 7, 2013 Share Posted August 7, 2013 (edited) I want to retrieve $POST values from four Category pages and and echo user's selection in the Final page e.g Computer & Network/Components and Parts In United States / New York Example Page 1 [ $Category $_Cookie] Page 2 [ $SubCategory $_Cookie] Page 3 [ $Country = $_Cookie ] Page 4 [ $Province = $_Cookie ] Final page to pick values in all four pages and echo them out Final Page 5 (Results) {echo You are Posting on? $Category."/" $Subcategory In $Country. "/"$Province} I want to use <a href""> Link </a> not Submit Button Thanks, Edited August 7, 2013 by Codenames Quote Link to comment https://forums.phpfreaks.com/topic/280916-php-retrieving-cookies-from-differents-pages/ Share on other sites More sharing options...
cyberRobot Posted August 7, 2013 Share Posted August 7, 2013 Sorry, I'm not really sure what you're asking. Are you stuck somewhere? If you're looking to create/use cookies, perhaps the following will help: http://php.net/manual/en/features.cookies.php Note that you could also use PHP sessions: http://us1.php.net/manual/en/book.session.php Quote Link to comment https://forums.phpfreaks.com/topic/280916-php-retrieving-cookies-from-differents-pages/#findComment-1443813 Share on other sites More sharing options...
Codenames Posted August 7, 2013 Author Share Posted August 7, 2013 Hi im new on PHP Im making a classified site, were users selcet category and sub category including location, i want to retrieve their selection to use on mysql database. I want to show category selection on Ad Post form like on ebay Thanks Quote Link to comment https://forums.phpfreaks.com/topic/280916-php-retrieving-cookies-from-differents-pages/#findComment-1443816 Share on other sites More sharing options...
PaulRyan Posted August 7, 2013 Share Posted August 7, 2013 Please post the code you are stuck with, as it is pretty much impossible for us to help you properly. Quote Link to comment https://forums.phpfreaks.com/topic/280916-php-retrieving-cookies-from-differents-pages/#findComment-1443818 Share on other sites More sharing options...
Codenames Posted August 7, 2013 Author Share Posted August 7, 2013 <a href"">computer and network<a/>(page1) ... Echo selection on final page (5) e.g Computer and Network / Components and Parts - United States / New York <a href="#">change<a/> im stuck from the start, dont have the code, i will send a link example Quote Link to comment https://forums.phpfreaks.com/topic/280916-php-retrieving-cookies-from-differents-pages/#findComment-1443821 Share on other sites More sharing options...
Codenames Posted August 7, 2013 Author Share Posted August 7, 2013 I used `$_GET` **for example :** <a href="page.php?cat=Category&subcat=Subcategory&province=Province&city=City">link</a> **PHP:** echo "You selected to post on" . $_GET["cat"] . "/" . $_GET["subcat"] . " - " . $_GET["province"] . "/" . $_GET["city"]; Quote Link to comment https://forums.phpfreaks.com/topic/280916-php-retrieving-cookies-from-differents-pages/#findComment-1443832 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.