I have the following code and I was under the impression that if it's just a simple input type=text that the form would submit when you press enter but it's not. Is this a php thing keeping it from happening?
<?
require("connect.php");
$connectmysql = mysql_connect($host,$user,$password) or die ($cantconnectmysqlmessage);
$db = mysql_select_db($database,$connectmysql) or die ($cantconnectdatabasemessage);
if (isset($_POST["submit"])){
$UID = strtoupper($_POST["frmUserID"]);
$DispQuery = "SELECT * FROM $UsersTable WHERE UID = '$UID'";
$DispResult = mysql_query($DispQuery) or die(mysql_error().'<br />');
IF ( mysql_num_rows( $DispResult ) > 0 )
{
WHILE ($Row = mysql_fetch_assoc($DispResult))
{
IF($Row["Access"]=="PRICING"){
header("location: pricingqueue.php?uid=".$UID);
}ELSE{
header("location: istqueue.php?uid=".$UID);
}
}
}ELSE{
ECHO "<BR><P ALIGN=CENTER><FONT COLOR=RED><B>USER ID NOT IN THE DATABASE. PLEASE TRY AGAIN OR CONTACT A PRICING MANAGER TO HAVE YOUR ID ADDED.</B></FONT>";
}
}
?>
<HTML>
<HEAD>
<TITLE>Log In</TITLE>
<STYLE type="text/css">
html, body {
height: 100%;
}
</STYLE>
<LINK REL="STYLESHEET" HREF="css/main.css">
</HEAD>
<BODY>
<?
ECHO "<FORM NAME='addedit' METHOD='post' ACTION='".$_SERVER["PHP_SELF"]."' ENCTYPE='multipart/form-data'>";
?>
<DIV ID="centeredcontent">
<P STYLE="border: 1px solid black">
<BR>
User ID<INPUT STYLE="width: 80px" CLASS='text' TYPE='TEXT' NAME='frmUserID'>
<BR>
<INPUT STYLE="WIDTH: 45px" CLASS='submit' TYPE='submit' NAME='submit' VALUE='Login'>
<BR>
<BR>
</P>
</DIV>
</FORM>
</BODY>
</HTML>