all you have to do is after accepting the variables just send them to
foo.php.
//you can skip this file. its only for the purpose of showing which
variables are to be used
<?php
//building up the html
$html = "<HTML><head><meta http-equiv=\"Content-Language\"
content=\"en-us\"><meta http-equiv=\"Content-Type\" content=\"text/html;
charset=windows-1252\"><meta name=\"GENERATOR\" content=\"Microsoft
FrontPage 4.0\"><meta name=\"ProgId\"
content=\"FrontPage.Editor.Document\"><title></title></head>";
$html .="<body bgcolor=";
$html .="$back_color";
$html .="$sender_name";
//displaying the html file
echo $html;
blah blah blah
//sending the variables to foo.php
echo "<form method=\"POST\" action='foo.php'>";
echo "<input type=\"HIDDEN\" name=\"sender_name\" value='$sender_name'>";
echo "<input type=\"HIDDEN\" name=\"sender_email\"
value='$sender_email'>";
echo "<input type=\"HIDDEN\" name=\"recip_name\" value='$recip_name'>";
echo "<input type=\"HIDDEN\" name=\"recip_email\" value='$recip_email'>";
echo "<input type=\"HIDDEN\" name=\"pic_select\" value='$pic_select'>";
echo "<input type=\"HIDDEN\" name=\"back_color\" value='$back_color'>";
echo "<input type=\"HIDDEN\" name=\"html\" value='$html'>";
?>
****************************************************************************
***************************************
//foo.php
****************************************************************************
****************************************
<?php
include('html_mime_mail.class');
//picture filename
$filename = $pic_select;
$backgrnd = fread($fp = fopen($filename, 'r'), filesize($filename));
fclose($fp);
$mail = new html_mime_mail("X-Mailer: anything u want\n");
$text = ' ';
$mail->add_html_image($back_color, $pic_select, 'image/jpeg');
$mail->add_html($html, $text);
$mail->build_message();
$mail->send($recip_name, $recip_email, $sender_name, $sender_email,
'Sub: Hi');
?>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]