see all variables POSTed to a script

This is a discussion on see all variables POSTed to a script within the alt.comp.lang.php forums, part of the PHP Programming Forums category; What code would you suggest to see all the parameters and their values that are posted to a script ? The ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-19-2007
Peter
 
Posts: n/a
Default see all variables POSTed to a script

What code would you suggest to see all the parameters and their values that
are posted to a script ?
The tricky part is, I don't know the paramters by name, so I can't code to
display each parameter seperately.


Reply With Quote
  #2 (permalink)  
Old 03-19-2007
Geoff Berrow
 
Posts: n/a
Default Re: see all variables POSTed to a script

Message-ID: <kuzLh.75396$8v5.544807@phobos.telenet-ops.be> from Peter
contained the following:

>What code would you suggest to see all the parameters and their values that
>are posted to a script ?


foreach($_POST as $key=>$value){
echo "Key: $key Value:$value<br>";
}

--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011
Reply With Quote
  #3 (permalink)  
Old 03-19-2007
shimmyshack
 
Posts: n/a
Default Re: see all variables POSTed to a script

On 19 Mar, 17:44, Geoff Berrow <blthe...@ckdog.co.uk> wrote:
> Message-ID: <kuzLh.75396$8v5.544807@phobos.telenet-ops.be> from Peter
> contained the following:
>
> >What code would you suggest to see all the parameters and their values that
> >are posted to a script ?

>
> foreach($_POST as $key=>$value){
> echo "Key: $key Value:$value<br>";
>
> }
>
> --
> Geoff Berrow 0110001001101100010000000110
> 001101101011011001000110111101100111001011
> 100110001101101111001011100111010101101011


and indeed

print_r( $_POST );

Reply With Quote
  #4 (permalink)  
Old 03-20-2007
Peter
 
Posts: n/a
Default Re: see all variables POSTed to a script

> and indeed
>
> print_r( $_POST );


Thanks both !


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:14 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0