Yes, the reoccurring issue I have yet to solve: Posting the contents (Saved to a DB) of a form to a redirected page.

Everything works except the rendering of the form data on the redirected page. I've been trying everything that I can think of. I've been researching this for countless hours.

I don't necessarily just want the answer given to me; If you could point out what I'm doing wrong and perhaps a helpful hint, it would be greatly appreciated.

Sloppy, redundant code, below (Sorry, I have not slept working on this issue):

<?php

ini_set('display_errors', 'On');
error_reporting(E_ALL | E_STRICT);

$con = mysql_connect("localhost","admin****","*Bridlepath*","test*");
if (!$con)
  {
  die('NEIN!' . mysql_error());
  }
//Connect to DB
$res = mysql_query("SHOW DATABASES");

while ($row = mysql_fetch_assoc($res)) {
    echo $row['testTable1'] . "\n";
}
mysql_select_db(test1, $con)
or die("Lost");

echo "<table border='1'>
<tr>
<th>Employee Name</th>
<th>Employee Address</th>
</tr>";

$result = mysql_query("SELECT * FROM testTable1 LIMIT 1") or die (mysql_error());
while($row = mysql_fetch_array($result))
  {
  echo $row['emp_name'] . " " . $row['emp_address'];
  echo "<br>";
  }

$result = mysql_query("SELECT * FROM testTable* LIMIT 1") or die (mysql_error());
while($row = mysql_fetch_array($result))
  {
echo '<table><tr>';
  echo '<td>';
    echo '<Strong>Name:</strong><br/>';
    echo $row;
  echo '</td>';
echo '</tr></table>';
}

mysql_close($con);

?>

Thank you in advance,
Matthew

Also, I'm getting many "Notices" about undefined constants, indexes, etc.

Not sure what to do with that at this point.

Might this have to do with sessions?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.