I have a dropdown menu which contains certain values (product names). Is it possible to populate my dropdown menu with a variable that has been passed on from another page?
I.e
Page 1.php
Here I have a selection of products, with images and descriptions.
User decides to buy product A, which is red color, made from China, qty is 5, clicks on the link. Code for the link is:
on my payment.php page I have dropdown menu which displays the various products. Users can add / subtract upto 5 products per order. I want to be able to display product A in the dropdown menu for products as the first product in the order.
Any ideas how I could do this?
Thanx in advance
Sarah
__________________
You are not a human being having a spiritual experience, your a spiritual
being having a human experience.
Now let me get this straight. The items in the dropdown are already pre-existing, however you want the first item in the dropdown to be what the user selected on a previous page?
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
ok, maybe i didnt explain myself properly - apologies Spookster. The dropdown menu on the payment.php page is already populated with a list of all the products that are on offer.
On my products.php page I have all the products with their descriptions, range of colors, pics, etc. These products at the moment are for visuals only, user see's the product they want, they go to the payment page and using the dropdown menu they select the right product.
What I want to do is make the visuals into links, so that when a user clicks on the link (this could be the in the form of the product image, description or text), they are taken to the payment.php page, and the product they have chosen appears in the dropdown menu. All the user has to do is type in the qty (optional, default is 1), and click on place order button.
Is this a better explanation, or have I confused you even more?
__________________
You are not a human being having a spiritual experience, your a spiritual
being having a human experience.
Ok it still almost sounds like what I previously thought.
The items in the dropdown are already pre-existing, however you want the item the user selected on a previous page to be the item that is selected by default on the payment page?
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!