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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Cometh
Forum Newbie
Posts: 1
Joined: Sat May 15, 2004 10:14 am

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

Post 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!!!!
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post 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']
Post Reply