Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE 6.0(bug?) merges values from 2 separate forms

Status
Not open for further replies.

leehinkleman

Programmer
Feb 14, 2002
83
NZ
The html below is printed by a Perl script, and if the javascript-written form is submitted, the Perl interpreter seems to receive the value of form input 'lgn' twice, and displays $lgn as 'dirkshirkledirkshirkle' instead of the intended 'dirkshirkle'.
Is there an obvious error in the two forms, or is this a bug in IE6? I tested the Perl script with Red Hat8.0's Mozilla 1.01, which displays $lgn as 'dirkshirkle', as needed.
Thanks for your advice with this problem.

<html>
<head>
<title>registration was successful</title>
<script language=&quot;javascript&quot;>
function Bv(){
ab=&quot;Your browser has been identified as &quot;;
avs=window.navigator.appVersion;
msi=avs.indexOf(&quot;MSIE&quot;);
sa=avs.split(&quot;MSIE&quot;);
msv=parseFloat(sa[1]);
if(msi!=-1 && msv>=5.5){
ab=ab+&quot;Internet Explorer &quot;+msv;
}
}
</script>
</head>
<body>
<table align=center bgcolor=#ccffff width=98%>
<tr>
<td width=96% bgcolor=#ffffff>
<p>
<b><i>Dirk</i></b><br>Thanks for joining the taupo.com fishing reports system.<br>
Your link on the front page of taupo.com will be made as soon as you post
your first fishing report for Taupo.
<p>
<script language=&quot;javascript&quot;>
Bv();
t1=&quot;Internet Explorer 5.5 or later&quot;;
t2=&quot;button toolbar page editor&quot;;
t3=&quot;<b><i>edit your page with a simpler editor, in which you just have to fill in another form to make your page:</i></b><br>&quot;;
if(ab!=&quot;Your browser has been identified as &quot;){
document.writeln(ab+' which means you can use a '+t2+'<br>');
document.writeln('If you have a Norton firewall, you may have to lower it, but this editor seems to work ok with the Windows XP firewall.<br>');
document.writeln('<form name=&quot;fm1&quot; method=&quot;post&quot; action=&quot;wed.pl&quot;>');
document.writeln('<input type=&quot;hidden&quot; name=&quot;lgn&quot; value=&quot;dirkshirkle&quot;>');
document.writeln('<input type=&quot;hidden&quot; name=&quot;wed&quot; value=&quot;yed&quot;>');
document.writeln('<input type=&quot;submit&quot; value=&quot;Press here to use the '+t2+'&quot;');
document.writeln('<\/form>');
document.writeln('<p>Or, if you prefer, you can '+t3);
}else{
document.writeln(ab+'a version other than '+t1+'<br>');
document.writeln(t1+' is required for a '+t2+', but you can '+t3);
}
</script>
<p>
<form name=&quot;fm2&quot; method=&quot;post&quot; action=&quot;edt.pl&quot;>
<input type=&quot;hidden&quot; name=&quot;lgn&quot; value=&quot;dirkshirkle&quot;>
<input type=&quot;hidden&quot; name=&quot;pwd&quot; value=&quot;mon&quot;>
<p>
<input type=&quot;submit&quot; value=&quot;Make your page by filling in a simple form&quot;>
</form>
<p>
This editor can be accessed at any time by clicking on the link for the &quot;PRO REPORTS LOGIN&quot;
on the front page of taupo.com <a href=&quot;../../pro_reports/login.htm&quot;>HERE</a>, then logging in with your username and password, and checking the button that says
'Edit my whole page', before you login. With this editor, your page will be rewritten every time you edit it, and every time
you post a fishing report.<br>
Thanks for your input.
</td>
</tr>
</table>
</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top