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

Posts: 1
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
 
When You Register, These Ads Go Away!
     
Old 05-15-2004, 12:15 PM
cmonkey's Avatar
Ultra Talker

Posts: 268
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 12:18 PM.
cmonkey is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Php HELP database link to form
 

Thread Tools

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

vB 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.10739 seconds with 13 queries