Page 1 of 1

Stumped on a simple $_post

Posted: Mon Feb 01, 2010 3:02 pm
by james2010
For some reason, when I assign a variable to a post, it comes back empty:

Code: Select all

 
    if(!empty($_POST)){ 
      $postVals = $_POST['metatags'];
            }
 
When I do a print_r on $post['metatags'] the information appears.
When I do a print_ron on $postVals, it is empty.

Any help is appreciated.

Re: Stumped on a simple $_post

Posted: Mon Feb 01, 2010 3:27 pm
by pickle
Moved to PHP - Code.

Re: your question: Do a var_dump() on both & see what you get. I have to admit though - it does seem odd.

Re: Stumped on a simple $_post

Posted: Mon Feb 01, 2010 3:40 pm
by james2010
Thanks for the reply. Figured it out - I had an extra '$' in the print_r - da!