Jump to content

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,

Edited by Codenames

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.