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

List of all $_POST variables transmitted ?

Hi,
Does Php can give us a way to find the name of all the POST variables
transmitted between two pages ?
I'm looking for a similar way to access those variables names than with
javascript and his document.forms["myform"].elements[0], something like
that...

Actually in my first form i have some dynamic names, and it's quite
difficult to exploit later, in form 2, when you have to rebuild them, i have
to use eval(), that's not so easy, so i'm looking for a smarter/easier way
to do it.

Any ideas ?
Thanks,
Arnaud
Jul 17 '05 #1
3 45766
In article <40***********************@news.free.fr>, "Arnaud" <b>
wrote:
Does Php can give us a way to find the name of all the POST variables
transmitted between two pages ?


array_keys($_POST) ?

JP

--
Sorry, <de*****@cauce.org> is een "spam trap".
E-mail adres is <jpk"at"akamail.com>, waarbij "at" = @.
Jul 17 '05 #2
"Arnaud" <b> wrote:
Hi,
Does Php can give us a way to find the name of all the POST variables
transmitted between two pages ?
I'm looking for a similar way to access those variables names than with
javascript and his document.forms["myform"].elements[0], something like
that...

Actually in my first form i have some dynamic names, and it's quite
difficult to exploit later, in form 2, when you have to rebuild them, i
have to use eval(), that's not so easy, so i'm looking for a
smarter/easier way to do it.


This will give you both the names and values.

print_r($_POST);

--
Chris Hope
The Electric Toolbox - http://www.electrictoolbox.com/
Jul 17 '05 #3
"Chris Hope" <ch***@electrictoolbox.com> a écrit dans le message de
news:10**************@news.athenanews.com...
This will give you both the names and values.
print_r($_POST);


Thanks Chris and JP, that's exactly what i needed.

bye
Arnaud
Jul 17 '05 #4

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

Similar topics

13
by: Marcus | last post by:
Hi All, I was wondering if there is a way to ensure that when submitting forms and using POST vars, the page sending the form resides on the same server as the destination page specified in the...
1
by: sarah | last post by:
Hi.. I'm having a problem trying to figure out the best way to process a POST and add items to my database, and hope someone can help me... :) Background: I have a database that I will use to...
5
by: Kit | last post by:
Hi there, I am recoding a website, and I want to add a generic footer to each page, using an included file with PHP snippets. Part of that footer would be a link to validate the page using the...
2
by: Deb M. | last post by:
I am trying to find out how I can use the ASP.net framework yet still post the variables to an external script (not ASPX) after the form has been submitted. So, the ASPX page will still post to...
3
by: Lars Netzel | last post by:
Hello! I have a button, in the click event I have this code: ---------------------------------------------------------------------------- ---------------------------- Response.Write("<script...
5
by: WhatsPHP | last post by:
Hi For some reason, at random posts, the post variables don't get thru to the server. For example, if there is are two text fields: name and email... (I have register_globals on)... When I try...
3
by: Vic Spainhower | last post by:
Hello, I have an HTML table that is being constructed from a MySQL table and displays a form that includes a check box on 1 of the fields on the form for each record. I have included in this PHP...
4
by: SupraFast | last post by:
I have 2 forms on one page. I have hidden variables in each form, with separate names, that contain values. The user decides which form to submit on. Only 1 form will be processed. Now my...
6
by: dmj07 | last post by:
Hi, I am running a stored procedure where I pass in a large list of variables e.g. ALTER PROCEDURE dbo.Insert(@Variable1 varchar, @Variable2 ...
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
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
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
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...

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.