Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

navigation problem

Status
Not open for further replies.

ascikey

Programmer
Feb 18, 2004
127
GB
Hi all I need a bit of advice. I am developing an e-commerce site for people who would like to advertise/sell their boats online . My problem is, when the user request a list of all boats for sale their will be a list of boats displayed with a link next to the boats so they can click and view just that boat. This page will then be written dynamically, but how do I know which link the user pressed. I know that I could use a button and have the value as the boat sellers id but I would prefer a link. Any suggestions would be appreciated. thx
 
Presumably all the boats details would be stored ina database of some kind.

So with each boat record, have a unique ID number.
Then when you dynamically generate your links append the id number for that boat to the link.

for example:
Code:
<a href="boatDetails.php?id=12345">Boat</a>

The script in "boatDetails.php" then retrieves a record from the database with the corresponding id number.
 
yes they are stored in a database with a unique ID, just hadn't thought of that way thx for your reply
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top