Jump to content

PHP Retrieving cookies from differents pages


Codenames

Recommended Posts

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,

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

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

<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

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"];

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.