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

newbie can't run an .asp script from a form...

Status
Not open for further replies.

OrthoDocSoft

Programmer
May 7, 2004
291
US
Folks,

I have a webpage with a "submit" button, which calls an .asp script and runs it. It works fine. Now I'm trying to create a similar one, but instead of "running" the script on clicking "submit", the form tries to "download" it! This is some of my code:

Code:
<form Name="trial" Method=Post Action="aspawd/downloadtrialawd.asp" onSubmit="return validate();">

this is the code for the "submit" button itself:

Code:
<input type="submit" name="trialb" value="Download it!" onmouseover="this.className='buttonon'" onmouseout="this.className='button'" class="button"><br>

the script I'm trying to run is in a sub-folder named "aspawd" and the script is named as you see it above. The line runs a "validate" javascript before taking action to verify all the form data.
Does anyone know what I am doing wrong? The structure appears identical to the first form I made which works well. I can't figure this out.

Thanks for helping a newbie

Ortho

[lookaround] "you cain't fix 'stupid'...
 
It is almost impossible to tell. We don't know what your javascript is doing.

The only thing that would make sense in the description you provided would be if the server were not set up to parse .asp files but would instead treat them as unknown files and tried downloading them. But since you say another asp script is running fine, this does not seem to be right.
 
Are you running this locally or through a web server? What is the URL you submit the page from? I agree with Vragabond that it sounds like you aren't using a web server set up to handle ASP pages where you're testing this.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top