473,387 Members | 1,603 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.

Dumping variables passed with SUBMIT

This is probably a simple thing to do, and it seems like I managed to
do this a few years ago, but I can't find a good example.

I'm trying to create a 'generic' page that I can call during my
testing, and it will take the variables passed by SUBMIT (not POST)
and display a web page showing all the variables and their values.

Does anyone have a good example that they would care to share? The
page will be on an Apache server, under *nix.

Brian

Apr 25 '07 #1
3 1932
Br*************@gmail.com said the following on 4/25/2007 1:37 PM:
This is probably a simple thing to do, and it seems like I managed to
do this a few years ago, but I can't find a good example.

I'm trying to create a 'generic' page that I can call during my
testing, and it will take the variables passed by SUBMIT (not POST)
and display a web page showing all the variables and their values.
A POST is a Submit, I think you mean a GET request.

For a GET, the parameters are in the URL, you simply read it and parse
the queryString.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 25 '07 #2
On Apr 25, 5:59 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
..
>
A POST is a Submit, I think you mean a GET request.
....
I know there are two ways to submit - one where the variables are
passed in the URL and the other they're passed in the body. I'my
trying to get the information from the body of the request.

There is a web page that someone else wrote and it is so convoluted I
can't figure out exactly what it is passing. I'd like to modify the
submit action in a copy of the page so it will direct to a web page
that will take the passed information and dump it to a web page, so I
can see what is happening.

Brian

Apr 26 '07 #3
Lee
Brian said:
>
On Apr 25, 5:59 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
.
>>
A POST is a Submit, I think you mean a GET request.
...
I know there are two ways to submit - one where the variables are
passed in the URL and the other they're passed in the body. I'my
trying to get the information from the body of the request.

There is a web page that someone else wrote and it is so convoluted I
can't figure out exactly what it is passing. I'd like to modify the
submit action in a copy of the page so it will direct to a web page
that will take the passed information and dump it to a web page, so I
can see what is happening.
GET sends the values in the URL.
POST sends them in the body of the request.
You should see method="POST" as an attribute of the form tag.
If there's no method attribute, it defaults to GET.

The easy way to see POSTed values is to write (or find) a
server-side script in PHP, CGI, etc, that dumps the values
(along with the server's environment variables).
That's really beyond the scope of this newsgroup, though.
--

Apr 26 '07 #4

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

Similar topics

1
by: williamroy | last post by:
Hello, I've got a form that runs over 5 pages. I need the last page submit button to post all of the answers at one time from the previous 5 pages (to another server). I'd like to see the last...
3
by: jethro_uk | last post by:
Hi there, I have a bizarre problem with FORM variables in ASP. Scenario using VI6, IE6, Windows2000 server: MyPage.ASP: .. .. ..
6
by: christopher.j.just | last post by:
I need to set the information being passed through the fields (23 of them) in the form into a session. Where do I start? Thanks, Chris
4
by: Cerebral Believer | last post by:
Hi I need help! Forgive me I am a PHP newbie. I have a small script that enables me to send a form from an HTML page. I want to use the HTML formatted form because the design of my website is...
4
by: Kurrent | last post by:
I have some data from text fields that are being passed over through a form that I am displaying with the $_POST superglobal. Once i have echo'd out this data onto the next page, i'd like to...
7
by: amygdala | last post by:
Hi all, I'm starting this new project in which I'ld like to implement sort of a design pattern I have seen being used in the CodeIgniter framework. Basically, the site will examine the URI and...
1
by: acehigh1983 | last post by:
hi i have been writting some HTML code and i have a web page that sends a username and password via a form post (can also use get) to another HTML page. I need to get the variables out of the query...
3
bugboy
by: bugboy | last post by:
Hi I'm using an <input type="submit"> to send variables to a js page when clicked. The code bellow allows me to send 3 variables to the js page.. is there a way to add more variables the the tag...
103
by: chochote | last post by:
Hi, I have a PHP script that does some processing, and stores an error message as a variable. The script then redirects to another script with the error string in the URL, with the second script...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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,...

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.