-
Request.Form returns HTTP 500 error
I'm running XPpro SP1 IIS5.1 IE6sp1. I have a simple .asp page with containing
2 text fields and a submit button in a form.On pressing the submit button
a second .asp page is loaded to show what is filled in the textboxes.When
the second page is loaded I receive the HTTP 500 error.
The moment I use the "request." I get the error.
Does anyone have an answer?
Here is the code
home.asp:
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<FORM ACTION="result.asp" METHOD="POST">
<P>Name: <INPUT TYPE="TEXT" NAME="name"></P>
<P>Firstname: <INPUT TYPE="TEXT" NAME="firstname"></P>
<P><INPUT TYPE="SUBMIT" VALUE="OK"></P>
</FORM>
</BODY>
</HTML>
result.asp:
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
The result is.
<%
Response.Write "Captured info:<BR>"
Response.Write Request.Form("name")
%>
</BODY>
</HTML>
-
Re: Request.Form returns HTTP 500 error
You'll need to turn off friendly error messages to see the real error.
There's a full explanation of how to do this in the general faqs at
www.aspfaq.com.
"franklst" <franklst@yahoo.com> wrote in message
news:3ddcb538$1@tnews.web.devx.com...
>
> I'm running XPpro SP1 IIS5.1 IE6sp1. I have a simple .asp page with
containing
> 2 text fields and a submit button in a form.On pressing the submit
button
> a second .asp page is loaded to show what is filled in the
textboxes.When
> the second page is loaded I receive the HTTP 500 error.
> The moment I use the "request." I get the error.
>
> Does anyone have an answer?
>
>
> Here is the code
>
> home.asp:
> <%@ Language=VBScript %>
> <HTML>
> <HEAD>
> <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
> </HEAD>
> <BODY>
> <FORM ACTION="result.asp" METHOD="POST">
> <P>Name: <INPUT TYPE="TEXT" NAME="name"></P>
> <P>Firstname: <INPUT TYPE="TEXT" NAME="firstname"></P>
> <P><INPUT TYPE="SUBMIT" VALUE="OK"></P>
> </FORM>
> </BODY>
> </HTML>
>
> result.asp:
> <%@ Language=VBScript %>
> <HTML>
> <HEAD>
> <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
> </HEAD>
> <BODY>
> The result is.
>
> <%
> Response.Write "Captured info:<BR>"
> Response.Write Request.Form("name")
> %>
>
> </BODY>
> </HTML>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|