request.form problem

request.form problem

am 08.02.2007 00:53:23 von MikeR

I have an html page which submits form data to an asp page. If I use the get
method, the data can be displayed in the receiving page using request.querystring.
I'd like to use the post method so the data isn't on the URL.






Below is the script on the rreceiver.
Nothing displays when the sender POSTs the form data.
<%
response.write(request.form("b1")) + "
"
response.write(request.form("T1"))
'response.write(request.querystring("b1")) + "
"
'response.write(request.querystring("T1"))
%>
Thanks,
Mike

Re: request.form problem

am 08.02.2007 02:22:10 von reb01501

MikeR wrote:
> I have an html page which submits form data to an asp page. If I use
> the get method, the data can be displayed in the receiving page using
> request.querystring. I'd like to use the post method so the data
> isn't on the URL.
>


Get rid of the ENCTYPE="..." part - that's only for uploading files
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Re: request.form problem

am 08.02.2007 03:04:29 von Bob Lehmann

And, in addition to what Bob said; Stop usinf FrontPage.

Bob Lehmann

"MikeR" wrote in message
news:Ol4JpMxSHHA.4632@TK2MSFTNGP04.phx.gbl...
> I have an html page which submits form data to an asp page. If I use the
get
> method, the data can be displayed in the receiving page using
request.querystring.
> I'd like to use the post method so the data isn't on the URL.
>
>
>


>
>
>
> Below is the script on the rreceiver.
> Nothing displays when the sender POSTs the form data.
> <%
> response.write(request.form("b1")) + "
"
> response.write(request.form("T1"))
> 'response.write(request.querystring("b1")) + "
"
> 'response.write(request.querystring("T1"))
> %>
> Thanks,
> Mike

Re: request.form problem

am 08.02.2007 14:20:18 von MikeR

Thanks Bobs! Both good advice.
Mike

Re: request.form problem

am 08.02.2007 15:02:42 von Tim Slattery

MikeR wrote:

>I have an html page which submits form data to an asp page. If I use the get
>method, the data can be displayed in the receiving page using request.querystring.
>I'd like to use the post method so the data isn't on the URL.
>
>



"multipart/form-date" is used for uploading files. It causes the
contents of the form, including the contents of uploaded files, to be
packaged into a MIME-formatted stream. Your server-side code must then
be able to unscramble the MIME blob and extract the pieces. If you
have no elements, and you want to use the
Request.Form collection, just delete the ENCTYPE parameter in the
tag.

--
Tim Slattery
MS MVP(DTS)
Slattery_T@bls.gov
http://members.cox.net/slatteryt

Re: request.form problem

am 12.02.2007 11:53:41 von MikeR

Tim Slattery wrote:
> "multipart/form-date" is used for uploading files. It causes the
> contents of the form, including the contents of uploaded files, to be
> packaged into a MIME-formatted stream. Your server-side code must then
> be able to unscramble the MIME blob and extract the pieces. If you
> have no elements, and you want to use the
> Request.Form collection, just delete the ENCTYPE parameter in the
> tag.
Thanks, Tim.
Sorry for the delay, I've been away for a few days.
Any way do do it on a file upload form? Know where I can find a tutorial on
"unscramble the MIME blob and extract the pieces" ?
Mike