Forum Moderators: open

Message Too Old, No Replies

Form works in IE, not in Mozilla. document.form.submit

short regi form doesnt show anything in mozilla

         

kwasher

5:51 pm on Dec 8, 2003 (gmt 0)

10+ Year Member



Hello. Can anyone tell me how to fix this code so it works in Mozilla? It works/shows up fine in IE, but in mozilla it just shows a blank page. Thanks!

User fills out a registration form. On submit, the form takes them to the do_register.php page (ITEMS IN CAPS ADDED BY ME - see code below). In the end result, users with IE are seeing the proper results, but mozilla users (like me) end up seeing a blank page-

do_register.php

<form name="form1" action="do_login.php" method="post">
<input type="hidden" name="txtUsername" value="NAME_IS_PASSED_HERE_CORRECTLY_FROM_PREVIOUS_FORM_PAGE"><input type="hidden" name="txtPassword" value="PASSWORD_IS_PASSED_HERE_CORRECTLY_FROM_PREVIOUS_FORM_PAGE"></form>
<script language="JavaScript">
document.form1.submit();
</script>

do_login.php (stripped out unnecessary codes like HTML, HEAD, etc)


<form name="form1" method="post" action="do_login.php">
<table width="356" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Username:</font></td>
<td>USERNAMEpassedfromdo_registerpage</td>
</tr>
<tr>
<td width="48%" height="30"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Your
confirmation code:</font></td>
<td width="52%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="txtCode" type="text" id="txtCode">
</font> </td>
</tr>
<tr>
<td height="30" colspan="2"><input name="submit" type="submit" value="OK"></td>
</tr>
</table>
<input type="hidden" name="txtUsername" value="PASSEDHEREFROMPREVIOUS">
<input type="hidden" name="txtPassword" value="PASSEDHEREFROMPREVIOUS">
<input type="hidden" name="OK" value="">
</form>

Thanks for your input!

DrDoc

6:06 pm on Dec 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Blank, as in completely blank? What does "view source" tell you?

kwasher

6:49 pm on Dec 9, 2003 (gmt 0)

10+ Year Member



Hi. Yes completely blank. The info above is from the view source.

You can see here using mozilla, but you have to sign up for a fake account to get to the problem part (comes right after the signup). [xchangehits.com...]