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):


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'>
<th>Employee Name</th>
<th>Employee Address</th>

$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>';



Thank you in advance,

3 Years
Discussion Span
Last Post by mattyd

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

Not sure what to do with that at this point.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.