Results 1 to 2 of 2

Thread: [Resolved] $_POST problem

Threaded View

  1. #1

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    [Resolved] $_POST problem

    What's wrong with this code?:

    Code:
    while (list($key,$val) = each($_POST)){
        if ($key != 'action' && $key != 'id') {
            $sql .= "$key='$val', "; 
        }
    }
    echo $sql;
    I seem to get value='value' rather than key='value'
    Last edited by The Hobo; Oct 10th, 2002 at 07:16 PM.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

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



Click Here to Expand Forum to Full Width