Jump to content

How do you assign $_POST to an array?


TomTees

Recommended Posts

Apart from making that public, there is nothing else wrong with that, though your basing this on the assumption that $_POST array is actually set, unless your invoking this after that check has been done...

 

What do you get if you go like this:-

 

print_r($this->formValues);

 

check that first once the property has state...

 

Rw

Netbeans says this is a syntax error...

 

		$this->formValues = $_POST;

 

 

And if I run my code (form) then I get this...

 

 

( ! ) Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /Users/user1/Documents/DEV/++htdocs/Ecommerce/02_FormHandler.php on line 7

 

TomTees

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.