Page 1 of 1

Php help in database form links..Help!!!

Posted: Sat May 15, 2004 10:14 am
by Cometh
Okay, I need to output the following in the following format:
Make Type Price Location Vehicle_ID link
Honda Sedan $12,999 North 123456 xxx
Cadillac suv $14,999 West 123333 xxx
Ferrari convert $39,999 West 123555 xxx
.
.
.

The part where there the heading is a link is where the problem really is.I can query and
spew out the results as above.The xxx is supposed to be a clickable link to an "I am interested" form page where the vehicle_id in the form must correspond .Hence, the user only needs to add in other info like contact..I am having problems in getting the vehicle_id of the car to appear on the form straightaway when the user clicks on the link..I need to get this working asap...

Help!!!!

Posted: Sat May 15, 2004 7:29 pm
by kettle_drum
pass the Vechicle_ID value in the link:

Code: Select all

<a href="interested.php?id=$Vehicle_ID">link</a>
Then on the interested page you can get the vehicle ID by using:

Code: Select all

$_GET['id']