I have a form that allows someone to tell a friend about a product. The select options include each of the products which are coded by an ID number.
To create a link in the outgoing mail by PHP page
I have a var coming from a Select Option $productid
It is written as
<OPTION VALUE="23532">
What I need to do is have this provide a complete link and name of the product
I would like to parse the databse of the store so that if the ID number is provided, on the resulting php page that sends the mail and displays the results on the screen, I want to read from the data base to complete the link that goes on to the screen and into the mail
Thus pulling
$product_name
$product_description
$product_thumbnail
and composing it into a preformatted HTML email message.
<P ALIGN="CENTER"><IMG SRC="$imagelink" width="100" height="120"><BR>
<A HREF="http://www.foobar.com/products.php?productid="$productid"> $product name</A> $product_description</P>
Any ideas?