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

Form doesn't submit to another page 1

Status
Not open for further replies.

slackah

Programmer
Aug 25, 2003
15
US
Hello

I am running Windows XP Pro with IIS 5.1 intalled. When I submit a page to itself, it works. When I call another page in the form action, it doesn't. The original page seems like it refreshes.....no error, no change.

For example, when I run this as "submitpage.asp", and the form action page("billybob.asp") does not exist, submit page justs refreshes. The same thing happens when I create "billybob.asp".

<%@ Language=VBScript %>
<HTML>
<HEAD>
</HEAD>
<BODY>
<FORM action=&quot;billybob.asp&quot; method=&quot;post&quot;>
<INPUT type=&quot;text&quot; id=text1 name=text1>
<INPUT type=&quot;submit&quot; value=&quot;Submit&quot; id=submit1 name=submit1>
</FORM>
</BODY>
</HTML>

I've even taken examples from IIS Help and pasted them directly into my texpad. Still, no dice.
Any ideas????

Slackah
 
try this in your form attrib.
<FORM action=&quot;./billybob.asp&quot; method=&quot;post&quot;>
notice the &quot;./&quot; in the action
Also I think you need <%@@ Language=VBScript %>
not <%@ Language=VBScript %>
Let me know how that works out
 
Thanks for the tips, but still nothing. My code works perfectly (or at least as expected) on several other machines. Being the fact that &quot;billybob.asp&quot; does not exist, it should generate an error... but it just refreshes the submit page.
 
Ralph,

Am not familiar with the two @ signs in that first line. Think that it should be one. (Caveat: Note that I say I think, but it does sometimes work for me. :))



--------------------------------------------------------------------------------------------------------------------------
Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
--Douglas Adams
 
yea your right, i dunno what I was thinking.
What is different about the other servers. What happens if you create a page called Billybob.asp. Does it show a picture of Laura Dern and Angelia Jolie? (Bad Joke I know, but it was just there)
 
Ouch, that one hurt... [lol]

Could this be something that is specific to the setup of IIS 5.1 on WinXP? That would be my other guess, though I have to admit that I am conpletely ignorant on those applications.

--------------------------------------------------------------------------------------------------------------------------
Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
--Douglas Adams
 
I might recommend forum41

--------------------------------------------------------------------------------------------------------------------------
Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
--Douglas Adams
 
Just ran a quick search on that forum and there are some posts. Here's one you may wish to try and good luck.

thread41-479458

--------------------------------------------------------------------------------------------------------------------------
Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
--Douglas Adams
 
I gotta weigh in on the language issue. I think it's
Code:
<% @Language=VBScript %>
with no space, although that shouldn't be causing this problem.

As far as the original problem, you might try examing the html source of the rendered page and see if the asp interpreter is doing something goofy.

P.S. Chopstik, you know what they say about all work and no play :)
 
Hey

I had a similar issue several weeks ago when I got issued a new pc at work. Go to the Add/Remove Windows components and see if all of IIS is installed. I found that my new pc (with win xp pro and iis v5.1) came default with the virtual private folders not being installed. All I did was check the box and I was in business.

If your code works on one/ several boxes and not another, then it's not the code.

GB
 
Sir! That was the trick. I had the same exact thing... did what you said and now I'm up and running. Thanks!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top