My Bravenet Password Gate works in IE but not in Mozilla Firefox .

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm using Front Page 2003 - copied and pasted Bravenet Password Gate code
into my web page. It works fine in IE but Firefox allows the gate to be
bypassed with no username/password. Can Anyone help with this?
 
Ron, here is the code:
<p align="center"><!-- Start Bravenet.com Service Code -->
<img border="0" src="Logo's/PCPFULLLOGO.JPG" width="810" height="205">

<p align="center">
<div align="center">
<div align="center" style="width: 200px; border: 1px solid #999999;
background-color: #F2F4FA;">
<form action="http://pub20.bravenet.com/passwd/show.php" method="post"
style="margin:0px;">
<div style="background-color:#DBE0F5; padding:3px; font:12px arial;
color:black;"><b>Enter Password Protected Area</b></div>
<div style="margin:10px 10px 4px 10px; font: 11px arial; color: black;
text-align:right;">
User Name: <input type="text" name="uname" size="15" maxlength="254"
style="border: 1px solid #cccccc; width: 115px" /><br>
Password: <input type="password" name="passwd" size="15" maxlength="254"
style="border: 1px solid #cccccc; width: 115px;" />
<input type="hidden" style="border: 0px solid black; height: 0px; width:
0px;" name="usernum" value="1652571988" /><input style="border: 0px solid
black; height: 0px; width: 0px;" type="hidden" name="cpv" value="2" /></div>
<div style="margin:4px 0px 0px 7px; float:left;"><a title="Free Password
Gate from Bravenet.com" href="http://www.bravenet.com"><img
src="http://assets.bravenet.com/cp/bn-passwd.gif" alt="Free Password Gate
from Bravenet.com" border="0"></a></div>
<div style="margin:0px 4px 4px 0px; float:right;"><a
href="MembersOnlyArea.htm"><input type="submit" name="submit" value="Login"
style="width: 50px;" /></a></div>
</form></div>
</div>
<!-- End Bravenet.com Service Code -->
 
You should check the code with Bravenet. It does not work at all with
Netscape4, and, as you have experienced, Mozilla Firefox ignores it.
Also, Mozilla 1.3 running on Linux ignores the script, and I suspect
Netscape 6 and later will do so as well.

The code segment
<a href="MembersOnlyArea.htm"><input type="submit" name="submit"
value="Login" style="width: 50px;" /></a> is wrong. A submit button
should not have a link wrapped around it. I do not know Bravenet's
system, but isn't protected page in Bravenet's database and loaded
when the form is submitted? If so, change that segment to:
<input type="submit" name="submit" value="Login" style="width: 50px;"
/>
As far as I can tell, (not knowing the password) this will work
correctly.
 
Ron, thank you. I will try your suggested code change. I appreiate your
time and feedback.

-Ernie.
 
Back
Top