473,387 Members | 1,572 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,387 software developers and data experts.

Form Results

Hi,

Is there a way to grab all the results from the querystring which are sent
via a form submit?

In PHP, you can just do something like $var = _GET; which will grab all the
fields on the querystring.

Thanks,
Shahid
Jul 22 '05 #1
4 1074
Quite simply;

Request.Querystring

Will grab everything after the "?"

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Shahid Juma" <sh*****************@hotmail.com> wrote in message news:e0**************@TK2MSFTNGP15.phx.gbl...
| Hi,
|
| Is there a way to grab all the results from the querystring which are sent
| via a form submit?
|
| In PHP, you can just do something like $var = _GET; which will grab all the
| fields on the querystring.
|
| Thanks,
| Shahid
|
|
Jul 22 '05 #2
"Shahid Juma" <sh*****************@hotmail.com> wrote in message
news:e0**************@TK2MSFTNGP15.phx.gbl...
Is there a way to grab all the results from the querystring which are sent
via a form submit?


To do just what you've asked for, use:

Request.QueryString

This extracts all the QueryString arguments passed in one go (retaining
any [url]Encoding applied to it to make the data safe to travel in this
way (translating spaces to '+'s, for example).

However, I would strongly advise /against/ passing form data using
QueryStrings (i.e. <form method='GET' >). QueryStrings are
notoriously limited in size, depending largely on which webserver
you're talking to (limits of 1 to 2 Kb being typical) /and/ they are visible
to the user; they can change them if they're feeling devious.

I would recommend changing the HTML Form tag to use

<form method='POST'>

and pick up the data sent using

Request.Form

instead.

HTH,
Phill W.
Jul 22 '05 #3
Thanks,

Another follow up question. I have multiple checkboxes with the same name.
How can I retrieve each result?

Thanks,
Shahid

"Steven Burn" <so*******@in-time.invalid> wrote in message
news:eW**************@TK2MSFTNGP15.phx.gbl...
Quite simply;

Request.Querystring

Will grab everything after the "?"

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Shahid Juma" <sh*****************@hotmail.com> wrote in message news:e0**************@TK2MSFTNGP15.phx.gbl... | Hi,
|
| Is there a way to grab all the results from the querystring which are sent | via a form submit?
|
| In PHP, you can just do something like $var = _GET; which will grab all the | fields on the querystring.
|
| Thanks,
| Shahid
|
|

Jul 22 '05 #4
Gazing into my crystal ball I observed "Shahid Juma"
<sh*****************@hotmail.com> writing in
news:em*************@TK2MSFTNGP15.phx.gbl:
Another follow up question. I have multiple checkboxes with the same
name. How can I retrieve each result?


The results are in the form of:
checkbox = first, second, third, fourth, fifth

so you can do a split to get the values.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #5

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

Similar topics

3
by: Mike Cocker | last post by:
Hello, I'm quite weak at PHP, so I was hoping to get some help understanding the below code. First off, I'm trying to create a "query form" that will allow me to display the results on my...
6
by: Jules | last post by:
Hi: I have an Access 97 Search form set up - a couple of combo boxes, a couple of text fields and a command button. I want the command button to run an SQL script and then open the results form....
3
by: Chris Calzaretta | last post by:
I need to create a form from this web service http://24.163.239.122/wsprojecttrackerobjects/wsprojecttrackerobjects.asmx if you call getloginscreen there is a field called screendescription that...
4
SHOverine
by: SHOverine | last post by:
I have a 3-part form that I am having trouble with. First part is to select the user group and the week and year that I want to submit results for, this calls the elements that I want to update. ...
2
NeoPa
by: NeoPa | last post by:
CHAPTER 1 - TABLE OF CONTENTS (Including attached database) CHAPTER 2 - INTRODUCTION CHAPTER 3 - TABLE LAYOUT CHAPTER 4 - FORM LAYOUT CHAPTER 5 - FORM MODULE CHAPTER 6 - CODE DISCUSSION (FILTER...
1
by: tomlebold | last post by:
Having problems displaying query results from combo boxes on a sub form, which is on the same form that is used to select criteria. This has always worked form me when displaying query results on...
1
by: bgreenspan | last post by:
Hi Everyone, I'm back for some more expert help. Here's what I am doing and what I tried. My database has entries with Contract Names and Expiry Dates, among other fields. I have a form...
8
by: hoofbeats95 | last post by:
I don't think this should be this complicated, but I can't figure it out. I've worked with C# for several years now, but in a web environment, not with windows form. I have a form with a query...
1
by: arggg | last post by:
I created a submit form that calls a javascript:AjAX Command that will call the data and submit it without have the page refresh. This works perfect in Firefox however in IE and Opera when the...
1
by: chromis | last post by:
Hi, I'm having trouble fully implementing the edit section of a contact admin system, so far I have written the following: - Bean (Contact.cfc) - Data Access object (ContactDAO.cfc) - Gateway...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.