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

Form submission problem

Status
Not open for further replies.
Jan 10, 2005
30
US
I just moved a website (it is an asp application) to a new site. This site used to be a virtual directory under another website. When I moved the site to a new site, I made sure that I modified any code that was referencing files from the parent old site. For example the old setup was like this:


The site I moved was under this site and was referenced as


Now I moved childsite to be on its own and it can be accessed from
There was some code in childsite that was referencing code from parent site. For example there were references such as href="/helpdesk.asp ..." instead of href="helpdesk.asp ..." or references such as href="/childsite/error.asp ..." which I changed to href="error.asp...". I made sure that I have gone thru all the code to remove such references. The new child site works fine now except for one page.

This page is the login page. When the login href is clicked, it is supposed to go to welcome.asp. The code says:
<a href="javascript: submit()" class="btnSubmit">Login</a>. The submit javascript performs validations and uses the following code to submit the form:

document.frmLogin.PostBack.value = "1";
document.frmLogin.submit();

When the form is submitted, it goes back to the old parentsite and I don't understand why it's doing that. It goes back to instead of Can anybody tell me why?

Thanks
M
 
look for the code that reads...
Code:
<form [red]action="[URL unfurl="true"]http://www.parentsite/childsite/welcome.asp"[/URL][/red] method="post">
change accordingly to the new welcome page.

Tony
_______________________________________________________________
 
Maybe something is hiding in an include file ? ... or maybe something is cached on your browser or the server?
 
I have looked in all the include files as well and there is no reference to If it is a cache problem it has to be on the server because I have run into this problem when accessing the application from multiple client machines. How do I clear the cache on the server? I don't believe IIS has a server cache, does it? We're using IIS 5.0. We have no cache servers running.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top