473,385 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

form post works in Firefox but not in IE6

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
3 1805
acoder
16,027 Expert Mod 8TB
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
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
16,027 Expert Mod 8TB
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

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

Similar topics

5
by: Paxton | last post by:
I created an html email containing a form whose method is POST. The form is posted to an asp page for processing, but no values are retrieved. So I response.write all the Request.Form fields, and...
4
by: Stuart Perryman | last post by:
Hi, I have the following code which works just fine in IE6 but not in Firefox. It is an extract of several table rows each with an individual form. It is generated by php. <form...
3
by: jeff29_b | last post by:
I am having a strange problem on a web form. I have an image button with an OnClick event handler. When I click the image the event isn't being called in the code behind when browsing in firefox....
8
by: Adam | last post by:
Hey, I'm using JS to submit a form with image submit buttons, using the following code... (Page is here... http://www.cards2do.co.uk/addcard.php?card_id=292 ) ...
10
by: Steve Last | last post by:
Hi all, I’m using IIS6 for our college Intranet and I’m having trouble using Request.Form. Here is my code: <% If Request.QueryString("action") = "show" Then Response.Write "title: " &...
9
by: Dave | last post by:
Hi, I've been trawling the web for answer to my problem with no luck although I'm hardly alone it seems! Below is the generated source for an ASP page that posts a value called 'album' to...
6
by: Boldgeek | last post by:
I am trying to develop an app that will allow automatic updating of a web form which uses multipart/form-data enctype (as it MIGHT be sending an image) I have an example form, which when...
2
by: bredsblocker09 | last post by:
i have created this upload form that will upload an image file... this works fine in both IE and firefox. I then created an identical form that will upload mp3 files. however this will work in IE but...
2
by: rudiedirkx | last post by:
Gents, I have a problem (only in Safari) with the onsubmit in webforms. This topic covers the same subject: http://bytes.com/topic/javascript/answers/166542-onsubmit-safari but not as detailed as...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.