I am trying to forward a username and password to another PHP form for verification. However I cannot seem to get the posted value on my verification page. I think its because of a screwed up initial page, where I have no idea whats going on. Part of the code was pasted from another application and the $nt is involved. Don't know if its needed. I also played around with the Submit name which was [B1] since removed. Can anyone please help me get on dry land again. Thanks. Below are parts of page in order they appear.
<form action="LGCheck.php" target="contents" method="post">
<?php
// Make a MySQL Connection
mysql_connect("localhost", "", "") or die(mysql_error());
mysql_select_db("Project") or die(mysql_error());
// Get all the data from the "TBLEMPLOYEES" table
$result = mysql_query("SELECT * FROM tblemployees")
or die(mysql_error());
echo '<select name="splodge" size="19" style="width:150px;">';
while($nt=mysql_fetch_array($result)) {
echo '<option value="'.$nt[strEmpName].'">' .$nt['strEmpName'].'</option>';
}
echo '</select>'; // closing list
?>
<form>
<p><input type="submit" ></p>
</form>
<form action="LGCheck.php" target="contents" method="post">
<?php
// Make a MySQL Connection
mysql_connect("localhost", "", "") or die(mysql_error());
mysql_select_db("Project") or die(mysql_error());
// Get all the data from the "TBLEMPLOYEES" table
$result = mysql_query("SELECT * FROM tblemployees")
or die(mysql_error());
echo '<select name="splodge" size="19" style="width:150px;">';
while($nt=mysql_fetch_array($result)) {
echo '<option value="'.$nt[strEmpName].'">' .$nt['strEmpName'].'</option>';
}
echo '</select>'; // closing list
?>
<form>
<p><input type="submit" ></p>
</form>