473,789 Members | 3,157 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

request.form problem

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.queryst ring.
I'd like to use the post method so the data isn't on the URL.

<form method="POST" ENCTYPE="multip art/form-data" Action="..\og\c c.asp">
<input type="text" name="T1" size="20"><P>
<input type="submit" value="Submit" name="B1">
</form>

Below is the script on the rreceiver.
Nothing displays when the sender POSTs the form data.
<%
response.write( request.form("b 1")) + "<br>"
response.write( request.form("T 1"))
'response.write (request.querys tring("b1")) + "<br>"
'response.write (request.querys tring("T1"))
%>
Thanks,
Mike
Feb 8 '07 #1
5 3759
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.queryst ring. I'd like to use the post method so the data
isn't on the URL.
<form method="POST" ENCTYPE="multip art/form-data"
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"
Feb 8 '07 #2
And, in addition to what Bob said; Stop usinf FrontPage.

Bob Lehmann

"MikeR" <nf********@pob ox.comwrote in message
news:Ol******** ******@TK2MSFTN GP04.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.queryst ring.
I'd like to use the post method so the data isn't on the URL.

<form method="POST" ENCTYPE="multip art/form-data" Action="..\og\c c.asp">
<input type="text" name="T1" size="20"><P>
<input type="submit" value="Submit" name="B1">
</form>

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

Feb 8 '07 #3
Thanks Bobs! Both good advice.
Mike
Feb 8 '07 #4
MikeR <nf********@pob ox.comwrote:
>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.queryst ring.
I'd like to use the post method so the data isn't on the URL.

<form method="POST" ENCTYPE="multip art/form-data" Action="..\og\c c.asp">
"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 <input type="file".... elements, and you want to use the
Request.Form collection, just delete the ENCTYPE parameter in the
<form...tag.

--
Tim Slattery
MS MVP(DTS)
Sl********@bls. gov
http://members.cox.net/slatteryt
Feb 8 '07 #5
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 <input type="file".... elements, and you want to use the
Request.Form collection, just delete the ENCTYPE parameter in the
<form...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
Feb 12 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
10336
by: Christopher Brandsdal | last post by:
Hi! I get an error when I run my code Is there any other way to get te information from my form? Heres the error I get and the code beneath. Line 120 is market with ''''''''''''Line 120''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
5
1631
by: Wayne Wengert | last post by:
I am trying to use Request.Form to differentiate between when a page containing a form is first loaded and when it is reloaded as a result of the user clicking on the Submit button. Things are not working as expected. Some snippets of my code are: fSubmit = Request.Form("Submit1") = "Process" Response.Write("Submit1 " & Request.Form("Submit1") & "<br>") Response.Write("fSubmit: " & fSubmit & "<br>") ......
2
1753
by: Harag | last post by:
Hi All Using: JScript IIS 5 I have a problem in the following code: // The next 4 lines display exactly what was typed in the text boxes. out("<br>Request.Form="+ Request.Form("Box1").Item); out("<br>Request.Form="+ Request.Form("Box2").Item);
5
2458
by: Paxton | last post by:
I created an html email containing a form whose method is POST. The form is posted to an asp page for processing, but no values are retrieved. So I response.write all the Request.Form fields, and nothing appears. I change the form's method to GET, then response.write the Request.QueryString items (which I can see in the URL) and it works fine. I need to use POST, as the quantity of data from the form will often exceed the limits of...
5
2200
by: Jack | last post by:
Hi, I am trying to get a thorough understanding of a code where a addition or deletion of records can be done from a list of records. For addition part of the form, data is being obtained from set of input boxes. The following is the code being used: If Len(Request.Form("ID_0"))>0 Then AuthorID=Request.Form("ID_0") FName=Request.Form("fName_0") LName=Request.Form("lName_0")
14
2089
by: Harry Keck | last post by:
I have client side code that uses xmlhttp to make an asyncronous call to the server. This call really churns the server and can take a couple of minutes to finish. I have found that while this long call is processing, I can not make any more requests to the server from the same session. I found this because if I have two completely separate instances of IE, they will not block each other, but if I do a File/New to spawn a separate...
10
14204
by: Steve Last | last post by:
Hi all, I’m using IIS6 for our college Intranet and I’m having trouble using Request.Form. Here is my code: <% If Request.QueryString("action") = "show" Then Response.Write "title: " & Request.Form("NewsTitle") & "<br />" End If %>
9
7037
by: Dave | last post by:
Hi, I've been trawling the web for answer to my problem with no luck although I'm hardly alone it seems! Below is the generated source for an ASP page that posts a value called 'album' to another ASP page. The other page retrieves the value with Request.Form('album'); On Firefox this works fine every time. On IE6, I always get nothing. I'm pretty sure it's the posting side that is at fault, so that's what I've shown here. Oh, I tried...
5
5906
by: =?Utf-8?B?QVRT?= | last post by:
PRB JavaScript in ASP with Request.Form Please help, I'm having a problem with JavaScript in ASP, where the ASP page crashes when I try to determine if data was posted from a FORM or through a QueryString. Where, if the data came through via a FORM, I want to use it 1st, but if not, to then try using it from the QueryString. Basically, the problem boils down to using "toString()" on Request.Form("NAME") and Request.QueryString("NAME")...
18
5449
by: Thomas Lunsford | last post by:
I have inherited a set of asp pages that I now need to augment. In order to minimize changes to production code, I would like to make a "call" to an asp page from a new asp page. Existing code is using many Request.Form variables, and I would very much prefer not to change this code. The new page will retrieve data that I would like to fill into Request.Form variables that are used in the old code. So, is it possible for me to set...
0
9665
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10408
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10199
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9020
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6768
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3697
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.