NYCPHP Meetup

NYPHP.org

[nycphp-talk] gnubie questions regarding working with form contents...

Chris Snyder chris at psydeshow.org
Fri May 2 10:05:51 EDT 2003


Joshua S. Freeman wrote:

>I'll try it all out tomorrow and let everyone know how it worked out.
>
>
>On 5/1/03 10:38 PM, "Greg Wilson" <greg at mbwpartners.net> wrote:
>  
>
>>before your foreach:
>>unset ($HTTP_POST_VARS['submit']);
>>this will pull it out of the array
>>
A another solution might be to just continue the foreach if you 
encounter a variable you don't want to display:

foreach ($_POST as $key=>$value) {
    if ($key=="submit") *continue*;
    print "$key => $value<br />/r/n";
}







More information about the talk mailing list