Forum Moderators: coopster
The problem I am having is once I hit the return key the form resets itself and clears my input. Is there anything I can do to correct this? Firefox seems to work fine when I input then hit the return key(while the cursor is in the textbox).
function getPwdRec()
{
print "<form action=\"pwdRec.php\" method=\"POST\" name=\"pwdRec\">\n";
print "<tr><td width=\"100\"> </td>";
print "<td algin=\"center\" width=\"600\">Enter your email address: <input type=\"text\" name=\"email\" size=\"19\"> ";
print "<input type=\"submit\" name=\"submit\" value=\"Submit\"> </td></tr></table> <br><br>";
print "</form>\n";
}//end getpwdRec
If the cursor is outside the textbox, then it will work fine and "submit" but if the cursor is inside, then it resets the form.....Any ideas?
--Nick
Seems like you're experiencing a "feature" that stumped me for ages, too.
function getPwdRec()
{
print "<table width=\"700\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";
print "<form action=\"pwdRec.php\" method=\"POST\" name=\"pwdRec\">\n";
print "<tr><td width=\"100\"> </td>";
print "<td align=\"center\" width=\"600\">Enter your email address: <input type=\"text\" name=\"email\" size=\"19\"> ";
print "<input type=\"submit\" name=\"submit\" value=\"Submit\">";
print "<input type=\"submit\" name=\"reset\" value=\"Reset\"></td></tr></table> <br><br>";
print "</form>\n";
print "<table width=\"700\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" >";
print "<tr><td> </td></tr>";
print "<tr><td align=\"center\"><hr width=\"60%\" size=\"1\" noshade></td></tr>";
print "<tr><td align=\"center\"><font size=\"-2\" face=\"arial\" color=\"#8d8d8d\"> ";
print "Copyright © 2005 WaveForm. All rights reserved. </font></td></tr></table></center>";
}//end getpwdRec
getPwdRec();
That's all there is, but even this still didn't work when the cursor is in the texbox. The submit button lights up when the cursor is in the text area, but once you hit the return key it resets....rather frustrating....
--Nick