Dumping variables passed with SUBMIT

B

Brian.Abernathy

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
 
B

Brian

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
 
L

Lee

Brian said:
...


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.


--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,140
Latest member
SweetcalmCBDreview
Top