473,396 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Request.Form

Hello Newsgroup,

I want to pass a Request.Form variable to an ASP form, through the url

for example lets say i have a form with a textfiled called "txtName" if i
click the submit button for example the asp page reads the content of this
txtName as Request.Form("txtName")

I want to achieve that the asp form is accessed through a URL where i can
pass the value of txtName without going to the page of the form and clicking
the submit button

is that possible?
regards
sabo
Jul 19 '05 #1
5 2547
If I follow you, it sounds like you just want to use a querystring.

http://www.yourdomain.com/page.asp?textvalue=your+value

<%
Response.Write "The value is " & Request.Querystring("textvalue")
%>

Ray at home

"momo" <el****@era.de> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hello Newsgroup,

I want to pass a Request.Form variable to an ASP form, through the url

for example lets say i have a form with a textfiled called "txtName" if i
click the submit button for example the asp page reads the content of this
txtName as Request.Form("txtName")

I want to achieve that the asp form is accessed through a URL where i can
pass the value of txtName without going to the page of the form and clicking the submit button

is that possible?
regards
sabo

Jul 19 '05 #2
Dear Ray,
This is not quite what i needed
This i know already, i mean the page which catches my form is expecting me
to fill a form where there is a text fiels called txtName
so i have to fill out this form and click on the submit button, because the
page processes my form using Requst.Form("txtName")
So i dont want to come on the page where i have to write my name on a form,
i would like to do it from the url directly
but since the page doesnt process Request.QueryString, but only processes
Request.Form then the page won't see what i entered in the url and it will
assume that i left txtName blank.
So i want to do it from the url and yet let the asp page have what i wrote
in the url as querystring as a request.form
clearer now?

anyway thanks for concern
momo

"Ray at <%=sLocation%>" <myFirstNameATlane34dotKOMM> wrote in message
news:#L*************@TK2MSFTNGP11.phx.gbl...
If I follow you, it sounds like you just want to use a querystring.

http://www.yourdomain.com/page.asp?textvalue=your+value

<%
Response.Write "The value is " & Request.Querystring("textvalue")
%>

Ray at home

"momo" <el****@era.de> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hello Newsgroup,

I want to pass a Request.Form variable to an ASP form, through the url

for example lets say i have a form with a textfiled called "txtName" if i click the submit button for example the asp page reads the content of this txtName as Request.Form("txtName")

I want to achieve that the asp form is accessed through a URL where i can pass the value of txtName without going to the page of the form and

clicking
the submit button

is that possible?
regards
sabo


Jul 19 '05 #3

I don't think that this is going to be possible for you.
A work around however would be ...

<%
Dim textName
textName = Request.QueryString("txtName")

If textName = "" Then
'// Get variables from form
Else
'//Get variables from querystring
End If

'// Process Data
%>

Brynn
www.coolpier.com
On Sun, 18 Jan 2004 21:44:03 +0100, "momo" <el****@era.de> wrote:
Dear Ray,
This is not quite what i needed
This i know already, i mean the page which catches my form is expecting me
to fill a form where there is a text fiels called txtName
so i have to fill out this form and click on the submit button, because the
page processes my form using Requst.Form("txtName")
So i dont want to come on the page where i have to write my name on a form,
i would like to do it from the url directly
but since the page doesnt process Request.QueryString, but only processes
Request.Form then the page won't see what i entered in the url and it will
assume that i left txtName blank.
So i want to do it from the url and yet let the asp page have what i wrote
in the url as querystring as a request.form
clearer now?

anyway thanks for concern
momo

"Ray at <%=sLocation%>" <myFirstNameATlane34dotKOMM> wrote in message
news:#L*************@TK2MSFTNGP11.phx.gbl...
If I follow you, it sounds like you just want to use a querystring.

http://www.yourdomain.com/page.asp?textvalue=your+value

<%
Response.Write "The value is " & Request.Querystring("textvalue")
%>

Ray at home

"momo" <el****@era.de> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
> Hello Newsgroup,
>
> I want to pass a Request.Form variable to an ASP form, through the url
>
> for example lets say i have a form with a textfiled called "txtName" ifi > click the submit button for example the asp page reads the content ofthis > txtName as Request.Form("txtName")
>
> I want to achieve that the asp form is accessed through a URL where ican > pass the value of txtName without going to the page of the form and

clicking
> the submit button
>
> is that possible?
> regards
> sabo
>
>




I participate in the group to help give examples of code. I do not guarantee the effects of any code posted. Test all code before use!

Brynn
www.coolpier.com
Jul 19 '05 #4
I know what you mean, but that just isn't how things work. There has to be
post data if you want to use request.form. Can't you just modify the page
that expects the post data to use a querystring instead?

Ray at home

"momo" <el****@era.de> wrote in message
news:Os**************@TK2MSFTNGP10.phx.gbl...
Dear Ray,
This is not quite what i needed
This i know already, i mean the page which catches my form is expecting me
to fill a form where there is a text fiels called txtName
so i have to fill out this form and click on the submit button, because the page processes my form using Requst.Form("txtName")
So i dont want to come on the page where i have to write my name on a form, i would like to do it from the url directly
but since the page doesnt process Request.QueryString, but only processes
Request.Form then the page won't see what i entered in the url and it will
assume that i left txtName blank.
So i want to do it from the url and yet let the asp page have what i wrote
in the url as querystring as a request.form
clearer now?

anyway thanks for concern
momo

"Ray at <%=sLocation%>" <myFirstNameATlane34dotKOMM> wrote in message
news:#L*************@TK2MSFTNGP11.phx.gbl...
If I follow you, it sounds like you just want to use a querystring.

http://www.yourdomain.com/page.asp?textvalue=your+value

<%
Response.Write "The value is " & Request.Querystring("textvalue")
%>

Ray at home

"momo" <el****@era.de> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hello Newsgroup,

I want to pass a Request.Form variable to an ASP form, through the url

for example lets say i have a form with a textfiled called "txtName"
if
i click the submit button for example the asp page reads the content of this txtName as Request.Form("txtName")

I want to achieve that the asp form is accessed through a URL where i can pass the value of txtName without going to the page of the form and

clicking
the submit button

is that possible?
regards
sabo



Jul 19 '05 #5
"Ray at <%=sLocation%>" wrote:
: I know what you mean, but that just isn't how things work. There has to
be
: post data if you want to use request.form. Can't you just modify the page
: that expects the post data to use a querystring instead?

I think you guys are missing the original question. The way I read it, he
doesn't have access to the code. He just wants some info on how to
circumvent filling out a form and clicking submit on a web site and wants to
try to pass it on the URL.

Just my take on it. I've been wrong before but perhaps the question should
be, "Is this your site and do you have access to the code?"

--
Roland

This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose.
-Technet Knowledge Base-
http://support.microsoft.com/default...&ln=EN-US&FR=0
-Technet Script Center-
http://www.microsoft.com/technet/tre...er/default.asp
-WSH 5.6 documentation download-
http://www.microsoft.com/downloads/d...displaylang=en
-MSDN Library-
http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #6

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

Similar topics

6
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...
2
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="+...
4
by: Paxton | last post by:
At the risk of being told "If it ain't broke, don't fix it", my code works, but is ugly. Part of the admin site I'm working on at the moment includes a facility for users to enter Formulations...
6
by: Agoston Bejo | last post by:
Hi. x1.asp: <form method="post" action="x2.asp"> .... </form> x2.asp: DoSomeAdministration() Response.Redirect "x3.asp?" & Request.Form x3.asp: further processsing of data
5
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...
5
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...
8
by: abcd | last post by:
I can get the value on the form at the server side by using Request.form("max") when max field is disabled I dont get value. For GUI and business logic purpose I have disabled some fields with...
4
by: whyyyy | last post by:
USING IIS 5.1, and Windows XP pro, the following form works on my system, and I can use as many form elements as I wish, as long as all form elements have the same name: "words", in this example....
4
by: Michael Kujawa | last post by:
I am using the following to create an SQL statement using the names and values from request.form. The loop goes through each item in request.form The issue comes in having an additional "and" at...
2
by: MDANH2002 | last post by:
Hi From VB.NET I want to simulate the POST request of the following HTML form <html> <title>HTTP Post Testing</title> <body> <form action=http://www.example.com/postdata ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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...
0
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...
0
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,...

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.