hello
i am writing a script that passes some values that i would like to incorporate in my html email i am sending. here are the examples:
i have a form with some hidden values i would like to pass:
<form action="../../vde_send_form.php" method="post">
<input type=hidden name=imgname value="80s_dip/frames/Filo.jpg">
<input type=hidden name=imgtop value="80s_dip/80sdip_grfx/heads/filo.gif">
<input type=hidden name=imgbar value="80s_dip/80sdip_grfx/80sdip.gif">
<input type=hidden name=stylename value="Filo">
<input type=hidden name=collection value="80s Dip">
<input type=hidden name=bgcolor value="#99CC99">
next those values are shown in a html file, which shows up fine:
<?php
$fullurl = "{$HTTP_REFERER}";
$style = "$stylename";
$col = "$collection";
echo "$fullurl<br>\n"
."<table width=\"600\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" height=\"250\" bordercolor=\"#666666\" align=\"center\">\n"
."<tr align=\"left\" valign=\"top\" bgcolor=\"$bgcolor\">\n"
."<td height=\"30\">\n"
."<img src=\"collections/$imgtop\" border=\"0\" width=\"150\" height=\"30\" alt=\"$style\">\n"
."</td>\n"
."</tr>\n"
."<tr>\n"
."<td align=\"center\">\n"
."<img src=\"collections/$imgname\" border=\"0\" width=\"420\" height=\"155\">\n"
."</td>\n"
."</tr>\n"
."</table>\n"
."<br>\n"
."<input type=hidden name=link value=$fullurl>";
?>
then i would like to send the same info, such as the $imgname, $imgtop, $style to a html formatted email
$message = "";
$message .= "
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
<html>
<head>
<title>Send a Frame to a Friend from VincentDagron.com</title>
</head>
<body>
<br>
".$imgtop."<br>
<table width=\"600\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" height=\"250\" bordercolor=\"#666666\" align=\"center\">
<tr align=\"left\" valign=\"top\" bgcolor=\"".$bgcolor."\">
<td height=\"30\">
<img src=\"http://mysite.com/collections/".$imgtop."\" border=\"0\" width=\"150\" height=\"30\" alt=\"".$style."\">
</td>
</tr>
<tr>
<td align=\"center\">
<img src=\"http://mysite.com/collections/80s_dip/frames/Ghia.jpg\" border=\"0\" width=\"420\" height=\"155\">
</td>
</tr>
</table>
</body>
</html>";
/ To send HTML mail, you can set the Content-type header. /
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
im thinking it has to do with a formating issue but i guess i am just stuck, or i have been up too long to think about it correctly
any suggestions would be gretly appreciated
thanks
darryl