By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,758 Members | 1,250 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,758 IT Pros & Developers. It's quick & easy.

form post works in Firefox but not in IE6

P: 1
Hello,
I am trying to submit a form that has two other forms inside it. It works fine in Firefox but not in IE6. For some reason it seems that document.getElementById('submitbtn').click(); is not working in IE6.
Any ideas? Thanks in advance for your help.

Kostas.

[HTML]<form id="id1" name="id1" method="post" action="actionpageMain.php">

<form action="action1.php" method="post">
<img src="sendSMS.gif" alt="" onclick="document.getElementById('submitbtn').clic k();"/>
</form>

<form action="action2.php" method="post">
...
</form>

<input style="display: none;" type="submit" name="submitbtn" id="submitbtn" value="submit"/>
</form>[/HTML]
Oct 3 '07 #1
Share this Question
Share on Google+
3 Replies


acoder
Expert Mod 15k+
P: 16,027
Welcome to TSDN!

Why are you nesting forms like that?

PS. please use code tags when posting code:

[CODE=javascript]
JavaScript code here...
[/code]
Oct 3 '07 #2

P: 1
Did you find a solution to this? I am having the same problem.

Thanks, Clayton


Hello,
I am trying to submit a form that has two other forms inside it. It works fine in Firefox but not in IE6. For some reason it seems that document.getElementById('submitbtn').click(); is not working in IE6.
Any ideas? Thanks in advance for your help.

Kostas.

[HTML]<form id="id1" name="id1" method="post" action="actionpageMain.php">

<form action="action1.php" method="post">
<img src="sendSMS.gif" alt="" onclick="document.getElementById('submitbtn').clic k();"/>
</form>

<form action="action2.php" method="post">
...
</form>

<input style="display: none;" type="submit" name="submitbtn" id="submitbtn" value="submit"/>
</form>[/HTML]
Nov 5 '07 #3

acoder
Expert Mod 15k+
P: 16,027
Clayton, welcome to TSDN!
Did you find a solution to this? I am having the same problem.

Thanks, Clayton
Post your problem code.
Nov 5 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.