简体   繁体   中英

Passing vendor ID through URL via a link for each vendor

I am trying to pass a vendor ID through a url. Each vendor should have a link called "rate this vendor" that when clicked brings you to a rate_vendor_add page with that particular vendor chosen in the drop down box. I am using a php generator program. Support told me to add the following code. It is pulling the vendor id but it is not a hyperlink. Can anyone see anything wrong with this code? There is an image of where he said this code goes and an image of what now shows in the column that is supposed to display a link to the rate vendor page.

$value = "< a href='vendor_ratings_add.php?vendorid=" . $data["ID"] . "'Rate this vendor</a>";

view as link

rate vendor link is gone

The a tag is not closed.

Try this:

$value = "<a href='vendor_ratings_add.php?vendorid=" . $data["ID"] . "'>Rate this vendor</a>";

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM