I have a form page that works fine except... nothing is displayed on page3 unless you change the Privacy Setting to "Accept all Cookies".
Even if different data is re-entered @ a different time you still have to keep changing the settings to "Accept all Cookies", then the data is displayed.
page1.htm => data entered (works fine)
page2.php => data displayed (works fine)
page3.php => nothing
(unless you change the cookie settings, refresh page2 then data is displayed on page3)
Is there anything I'm doing wrong so the end user doesn't have to keep hitting F5 on page2
Thank you
code page2:
<?php
session_start();
$_SESSION['category'] = $_POST[category];
$_SESSION['location'] = $_POST[location];
$_SESSION['name'] = $_POST[name];
$_SESSION['city'] = $_POST[city];
?>
(mail code)
<?php
$msg = '
<html>
table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr><td class="col0_out formheadertext" colspan="5" width="435"><center>Score Information</center></td></tr>
<tr>
<td width="25"></td>
<td class="formfieldtext" width="188">Category:</td>
<td class="bodytext" width="272"><b>'.$_SESSION['category'].'</b></td>
<td class="formfieldtext" width="177">Location:</td>
<td class="bodytext" width="32%"><b>'.$_SESSION['location'].'</b></td>
</tr>
<td width="25"></td>
<td class="formfieldtext" width="188">Name:</td>
<td class="bodytext" width="272"><b>'.$_SESSION['Name'].'</b></td>
<td class="formfieldtext" width="177">City:</td>
<td class="bodytext" width="32%"><b>'.$_SESSION['city'].'</b></td>
</tr>
';
//set up the mail
$recipient = "client@example.com";
$recipient2 = "client2@example.com";
$subject = "Store Sales";
$mailheaders = "From: ace-plumbing.com<estimate@ace.com> \n";
$mailheaders .= "Reply-To: $_POST[email]\n\n";
$mailheaders = 'MIME-Version: 1.0' . "\r\n";
$mailheaders .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
//send the mail
mail($recipient, $subject, $msg, $mailheaders);
//mail($recipient2, $subject, $msg2, $mailheaders);
//end of PHP code
?>
code page3
<?php
session_start();
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<tr valign="top">
<td >Category</td>
<td > </td><td>
<?php echo '<b>', $_SESSION['category'] , '</B>'; ?></td>
<td >Location</td>
<td > </td><td>
<?php echo '<b>', $_SESSION['location'] , '</B>'; ?></td>
<td >Name</td>
<td > </td><td>
<?php echo '<b>', $_SESSION['name'] , '</B>'; ?></td>
<td >City</td>
<td > </td><td>
<?php echo '<b>', $_SESSION['city'] , '</B>'; ?></td>
</body>
</html>