470,855 Members | 1,309 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,855 developers. It's quick & easy.

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 45645
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by Marcus | last post: by
2 posts views Thread by Deb M. | last post: by
3 posts views Thread by Lars Netzel | last post: by
5 posts views Thread by WhatsPHP | last post: by
3 posts views Thread by Vic Spainhower | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.