Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2004
    Posts
    873

    PHP : list form POST fiends ?

    Hi

    i want to know how can list all submited values to a php file without knowing REQUST name !

    if you see phpinfo can do this !
    Attached Thumbnails Attached Thumbnails form.JPG  

  2. #2
    Join Date
    Nov 2003
    Posts
    691
    PHP Code:
    <?php
    print_r
    ($_POST);
    ?>
    or
    PHP Code:
    <?php
    foreach ($_POST as $key => $value) {
    echo 
    $key ': ' $value;
    }
    ?>
    You can do the same for $_GET, $_REQUEST, etc

  3. #3
    Join Date
    Jul 2004
    Posts
    873
    thanks !

  4. #4
    Join Date
    Nov 2003
    Posts
    691
    No problem

Posting Permissions

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