$_POST and php

Sharky Forums


Results 1 to 3 of 3

Thread: $_POST and php

  1. #1
    Reef Shark rAph's Avatar
    Join Date
    Jun 2002
    Location
    Phoenix, AZ
    Posts
    274

    $_POST and php

    Hey, how can I loop through the _POST super-global array and get the field name? I know how to get the field value, but i need the field name. For example:

    <input type='hidden' name='FVid_type' value='int' />

    I need to my PHP program to output "FVid_type", not "int"

  2. #2
    Expensive Sushi Jedi Legend's Avatar
    Join Date
    Mar 2003
    Location
    Kansas, United States
    Posts
    19

    Post

    PHP Code:
    foreach ($_POST as $key=>$value) {
       echo 
    $key;

    $key is the current key and $value is the current value of the array $_POST.
    Last edited by Jedi Legend; 04-20-2003 at 08:57 PM.

  3. #3
    Reef Shark rAph's Avatar
    Join Date
    Jun 2002
    Location
    Phoenix, AZ
    Posts
    274
    Thanks a bunch, you've really helped

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •