Hello and thanks for the help.
My situation:
1. order.php page is the html page that lets user fill out form and has the submit button.
2. send_order.php page formats the data and send an email.
3. I want the order.php page to re-load and display confirmation message at top of page
((I have this working when only one php page is used, but I want to use 2 php pages.))
Here is order.php
<body bgcolor="#FFFFFF" text="#000000" background="../images/topbackground.gif">
...
...
...
<table width="100%" height="695">
<tr>
<td height="39" valign="top">
<p><br><?= $mesg ?>
<b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">To place
an order by email:</font></b></p>
...
...
...
<tr>
<td height="23" valign="top">
<form name="order_form" method="post" action="send_order.php">
...
...
...
Here is send_order.php
<?php
$confirm_msg = "";
if ($HTTP_POST_VARS && $send) {
define($SERVER_NAME, "localhost:8080");
$msg = $contact_information;
$msg .= $order_information;
$to = "emailadress";
$subject = "Web Site Order - " . $company_name;
if (mail($to, $subject, $msg))
$confirm_msg = '<font color="#FF0000">Thank You'. $contact_name. ', your e-mail has been sent.</font> <br> <br>';
else
$confirm_msg = '<font color="#FF0000">Were sorry'. $contact_name. ', but your e-mail was not sent. Please call us.';
}
header("Location: $HTTP_REFERER?mesg=confirm_msg");
?>
Everything works, EXCEPT the confirmation message does not show up.
THANKS