WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

WebBatch
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Variable Name Not Passed by IE6 or IE7

 Keywords: WebParamData WebParamNames Browser Client IE IE6 IE7 POST Var-name Var Name Variable input type image 

Question:

My .WEB script works fine in FireFox but not in IE7. When you click the Request (image) button and it should display the title, author and request type. However WebParamData and WebParamNames are not returning the SUBMIT variable anme or value. However Firefox will!

Here is my simplified HTML:

<html>
<head>
<title>Test</title>
</head>
   <body>
      <form method="POST" name="Form_0441017770" action="http://www.dawebserver.com/webcgi/webbatch.exe?ie_test.web+SUBMIT">
         <input type="image" src="request.jpg" value="Submit1" name="SUBMIT">
      </form>
      <form method="POST" name="Form_0441017771" action="http://www.dawebserver.com/webcgi/webbatch.exe?ie_test.web+SUBMIT">
         <input type="image" src="request.jpg" value="Submit2" name="SUBMIT">
      </form>
   </body>
</html>

WebParamName returns the following:

Firefox Returns:

Formvars = WebParamNames( ) 
(0) VALUE STRING => "SUBMIT.x	SUBMIT.y	SUBMIT"

Internet Explorer 7 Returns:

Formvars = WebParamNames( ) 
(0) VALUE STRING => "SUBMIT.x	SUBMIT.y"

As you can see when run with IE the SUBMIT variable never gets returned!

Any suggestions?

Answer:

I see from your .html file that the input type you are using is: <input type="image" />. Apparently IE (6 and 7) the doesn pass the value from the button to the server. After some Googling around, I found out that this is a well known problem. Please see the following article for workaraounds:

http://trevordavis.net/blog/tutorial/input-vs-button/


Article ID:   W17513
Filename:   Variable Name Not Passed by IE6 or IE7.txt
File Created: 2009:03:11:09:03:04
Last Updated: 2009:03:11:09:03:04