Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Php HELP database link to form
Old 05-15-2004, 12:32 PM Php HELP database link to form
Junior Talker

Posts: 1
Trades: 0
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...
Cometh is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-15-2004, 01:15 PM
cmonkey's Avatar
Ultra Talker

Posts: 268
Trades: 0
If the xxx is a text link you can pass the value of vehicle_id by doing something like this:

<a href='formpage.php?vehicle_id=$vehicle_id'>xxx</a>

the value of xxx will be passed to formpage.php, then in the form you can display the value by using this:

<input type=text name='vehicle_id' value='<?=$vehicle_id'?>'>

( <?=$vehicle_id?> will produce the same result as <? echo "$vehicle_id" ?> it's just a little shorter )

Hope that made sense

Last edited by cmonkey; 05-15-2004 at 01:18 PM..
cmonkey is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Php HELP database link to form
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21825 seconds with 12 queries