473,372 Members | 1,103 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,372 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 1929
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: 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...
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: 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...

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.