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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strange Behavior - Form submission

Status
Not open for further replies.

tayorolls

MIS
May 8, 2007
42
US
This is a wierd behavior that I am seeing. Let me know what could be the issue.

I tested this both in my local IIS and production IIS. The same code works. I have made sure that the path is exactly the same, the properties are exactly the same.

This is a simple form with a textbox and it submits to another ASP page.

Code:
<%@Language="VBScript"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL] 
<html>
<head>
<title>Velocity</title>
</head>

<body>

<form name="frmVelocity" method="post" action="updateHomeUsersProcess.asp">

<input type="text" name="test1" value="Test1"/>

<input type="submit" value="Update" />
</form>
</body>
</html>

The above form is able to submit to the receiving ASP page.

At both the IIS Servers, the page is set to Anonymous Authentication.
----------------------------------------

Scenario 2:

This page has the following code:

Code:
<%@Language="VBScript"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL] 
<html>
<head>
<title>Velocity</title>
</head>

<body>
<%sUser = Request.ServerVariables("LOGON_USER") %>
<form name="frmVelocity" method="post" action="updateHomeUsersProcess.asp">

<input type="text" name="test1" value="<%=sUser%>"/>

<input type="submit" value="Update" />
</form>
</body>
</html>

I am trying to grab the LOGON_USER and dump it in the textbox and then submit the value. Both the local and production environment, the values are not being submitted to the receiving page.

In order to grab the logon_user, I set the authentication to "Integrated Windows Authentication".

Why am I not able to submit the form elements when I set the page to IWA?

To check if I am able to submit form elements and their values again if I am to revert back to "Anonymous Authentication", I need to close this browser window, open a new browser window, and then I am able to submit the form elements again. Same case both in Production and local environment.

Any responses or suggestions would be appreciated.

Thanks.
 
When the page loads do you see the correct value in the textbox named test1?
 
There should not be a difference and I don't see anything immediately that would cause a problem such as you describe. However, it would be more useful if you could take your second scenario and add a new form value similar to that in your first scenario (using a static value) and see if that is retrieved on the next page. Also, you did not state if you are receiving an error with the second scenario or what was actually happening. Without a little more information, it is more difficult to help you. (For example, you could also include the code on the second page of both scenarios to show how you are returning the values that were supposed to be submitted.)

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
Thanks for the replies. I do not receive any errors in Scenario 2. My receiving page - updateHomeUsersProcess.asp

has this code:

Code:
For Each Item in Request.Form
		response.write "<b>" & Item & "</b>: " & Request.Form(Item) & "<br>"
Next

I do not see any thing printed to the browser.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top