Question

Internet Explorer 8 - HTML Form Problems

Asked by: jwinney

We are testing IE8 in our environment and I have a really strange problem with a HTML form (a simple satisfaction survey), which is sent by email to users who are  using Outlook 2003.

In IE6, the form submits exactly as expected and a thank you note is displayed in the browser.

In IE8, it seems the form submits in the background and the thank you note is not displayed. Instead, it seems the page is re-rendered and the asp code that does all the checks is re-run from the start and no values are passed from Outlook.
This means the user gets bounced to a different page to re-enter values, but when submitting that, they get an error because an entry has already been made in the database.

I hope that makes sense. I dont know whats at fault, perhaps someone can shed some light on it? Ive stripped out everything to make a very basic form, but the same happens.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-07-30 at 05:58:50ID24612763
Tags

IE8 FORM SUBMIT ASP

Topic

Internet Explorer Web Browser

Participating Experts
1
Points
125
Comments
15

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. PHP survey form
    Hi! I am creating an online PHP survey form. I have two problems: Problem 1: I want to display "Your response is valid. Please try again" message only when any of the survey respondent's input failed validation. Currently, even though a suubject' response failed ...
  2. Help with a simple survey
    I am conducting a simple survey for a marketing project. I have written some HTML code to create the survey but have forgotten completely how to create the other tiers to actually draw and correlate data. I had done this once before with Access but I have no problems using Sq...
  3. IE6 freezes
    Using IE6 (XP/SP2) I'm trying to save and reopen the following WEB site: http://www.nytimes.com/2008/05/25/magazine/25lives-t.html?_r=1&ref=magazine&oref=slogin 1. With this PARTICULAR WEBsite, I cannot save it as Web Page Complete. I get a dialog that says simply c...
  4. CSS & Ie6
    I am currently designing a website using CSS and I have a peculiar problem where some images are appearing and then disappearing in IE6. They are showing up fine in IE7 and Firefox. The image in question is not a background image. On another page I am using background images...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: NotexaPosted on 2009-07-30 at 06:11:12ID: 24979345

Could you post the code of the form (maybe even the whole page) ?

 

by: jwinneyPosted on 2009-07-30 at 06:45:03ID: 24979708

Here is the HTML in it's most basic form:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
 
<body>
<form action="http://cdfss05/applications/satisfaction/satisfaction.asp?type=TSD&id=9999999" method="post" name="Survey" id="Survey">
                              <input name="rating" type="radio" value="9">
                              <input type="radio" name="rating" value="1">
                              <input type="radio" name="rating" value="2">
                              <input type="radio" name="rating" value="3">
                              <input type="radio" name="rating" value="4">
                        <textarea name="usercomments" cols="50" rows="3" id="usercomments"></textarea>
                        <input name="hiddenINCID" type="hidden" value="9999999">
						<input name="hiddenUSRID" type="hidden" value="0">
						<input name="hiddenUSREmail" type="hidden" value="0">
                        <input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:

Select allOpen in new window

 

by: jwinneyPosted on 2009-07-30 at 06:49:17ID: 24979760

The ASP

<script>
if(navigator.userAgent.indexOf("Firefox") != -1)
{
   window.location = "nofirefox.htm";
}
</script>
 
<%
'This script supports multiple satisfation tables (BSC and TSD)
'Table and Graphics used are dependant on the Type passed in the URL
 
	Dim TheMessage, IncID, TheRating, Comments
	SQLServer = "(local)"
	SQLDb = "Satisfaction"
	SQLTable = Request("Type")
	SQLUser = "user"
	SQLPass = "pass"
	
	Response.Expires = -1 
	IncID = Request.Form("hiddenINCID")
	If IncID = "" then
			IncID = Request("ID")
	End if
    
	TheRating = Request.Form("rating")
	'Response.Write TheRating
	Comments = Replace(Request.Form("usercomments"),"'","''")
	
	If IncID = "" then 
		Response.Redirect("response.asp?Type=" & Request("Type") & "&id=" & Request("ID"))
	End if
	
	If TheRating = 0 then 
		Response.Redirect("response.asp?Type=" & Request("Type") & "&id=" & Request("ID"))
	End if
 
	If TheRating <> 0 then
		'Set up connection to database
		Set Conn = Server.CreateObject("ADODB.Connection")
		Set rs = Server.CreateObject("ADODB.Recordset")
		Conn.Open "Provider=SQLOLEDB; Data Source = " & SQLServer & "; Initial Catalog = " & SQLDb & "; User Id = " & SqlUser & "; Password = " & SqlPass
		'Check if already submitted
        Rs.Open "Select * from " & Request("Type") & "Satisfaction where INCID = '" & IncID & "'" ,Conn
		TheCounter = 0
		While Not RS.EOF
			Thecounter = TheCounter + 1
			RS.Movenext
		Wend
		
		If TheCounter = 0 then
				TheMessage = "Thank you. Your feedback is important to us.<br><br>"
				If Request("Type") = "TSD" then 
					If TheRating = 1 then TheMessage = TheMessage & "Your feedback has been passed to the Incident Manager<br>for further analysis/investigation.<br><br>"
				End if
				If TheRating = 9 then 	TheMessage = TheMessage & "Your call will be re-opened shortly<br>for further analysis/investigation.<br><br>"
				TheMessage = TheMessage & "You can now close this window"
				
				Conn.Execute "INSERT INTO " & Request("Type") & "Satisfaction (INCID, Rating, Comments, Datestamp) Values ('" & IncID & "','" & TheRating & "','" & Comments & "',GetDate())"		
		Else
			TheMessage = "Sorry, you've already given feedback for this reference number.<br><br>You can close this window."
		End if
		RS.Close
		Conn.Close
	End if	
	%>
<html><head>
<style>
	body,td{font-family:Arial, Helvetica; font-size:13px;} .descrip{font-family:Arial, Helvetica; font-size:11px; color:#145BA9;margin-top:0px;margin-bottom:0px;}
</style>
</head><body>
<div align="center">
<table width="598" border="0" cellpadding="0" cellspacing="0" style="border-color:#000000; border-style:solid; border-width:1px">
  <tr>
    <td><img src="<%=Request("Type")%>-newsletter-head.jpg" width="598" height="100"/></td>
  </tr>
  <tr>
    <td><table width="100%"  border="0" cellspacing="0" cellpadding="6">
        <tr>
            <td> <p align="center"> <br>
                <strong><%=TheMessage%><br>
                </strong><br/>
                </p>
              <p align="center"><br/>
              </p>
  </td>
        </tr>
      </table>    </td>
  </tr>
</table>
</div>
</br></br></br></br>
</body></html>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:

Select allOpen in new window

 

by: NotexaPosted on 2009-07-30 at 07:18:20ID: 24980053

To which page are they redirected ?

On second submit, do they get the error: "Sorry, you've already given feedback for this reference number.<br><br>You can close this window." ?

 

by: jwinneyPosted on 2009-07-30 at 08:03:51ID: 24980524

On first and only submit, they are redirected to "No Values were passed" (response.asp) which is just a copy of form. But an entry is put into the database at that point, like the initial page processed in the background.

 

by: jwinneyPosted on 2009-07-30 at 08:11:11ID: 24980605

If they submit the response.asp, they get "Sorry, you've already given feedback for this reference number" So the subission from outlook seems process and then re-prosses the satisfaction.asp page to display to the user.

 

by: jwinneyPosted on 2009-07-31 at 02:14:13ID: 24987279

Checking the IIS log files, I can see under IE6, the form does a single POST.
Under IE8, there are 2 entries. A POST and then a GET to the same page (satisfaction.asp)

 

by: NotexaPosted on 2009-07-31 at 04:14:16ID: 24987714

Could you post the complete code of satisfaction.asp ?
Am I right that this asp page generates the form code (the code you posted higher) and does the submit ?

 

by: jwinneyPosted on 2009-07-31 at 04:42:12ID: 24987860

The HTML above is a very trimmed version of the HTML email that's sent.
The ASP code above IS satisfaction.asp, which the HTML for POSTs to.

 

by: NotexaPosted on 2009-07-31 at 08:29:55ID: 24989713

Could you put a response.write above  "If IncID = "" then " for the following variables:
TheRating
IncID

Comment out everything below.
It looks to me that one of the two variables don't get a value the first try, thus the redirect to the form (response.asp).  The check above allows us to confirm (or not) that this is the problem.

 

by: jwinneyPosted on 2009-07-31 at 08:35:16ID: 24989774

I have done this while I was trying to figure out what was wrong.
I get values shown in IE6, but nothing in IE8, BUT the entry is still written to the database!
Had me scratching my head for quite a while as it defied normal logic.
How could both conditions be met...
But from the log files, I'm guessing that behind the scenes, the form data is posted to satisfaction.asp correctly, but then the page that is displayed does a GET instead, thus no values are returned and the user is bounced to response.asp.

 

by: NotexaPosted on 2009-08-02 at 11:08:17ID: 24999758

Sorry for the late response but this is a real head scratcher.  

I've been looking around and apparently IE8 has problems with response.redirects (probably a bug in IE8 or something to do with security settings).

Please try the following:
add <meta http-equiv="pragma" content="no-cache"> to the html pages.

Also check if cookies are allowed for the site (IE8 is rather strict on this, and with no cookies allowed no session variables will be passed).

A page with a lot of info what could be wrong: http://classicasp.aspfaq.com/general/why-won-t-my-session-variables-stick.html

Let me know if any of this helps.

 

by: jwinneyPosted on 2009-08-06 at 07:20:53ID: 25033643

Hi, thanks, i'll check that as soon as I can.... Just had a baby so may be a week or two before I can get back to this :o)

 

by: jwinneyPosted on 2009-09-04 at 02:14:27ID: 31609723

No soloution found. Accepting that IE8 has bugs!
Thank you for trying.

 

by: NotexaPosted on 2009-09-04 at 11:33:53ID: 25262160

Congratulations ! :-)

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...