$_GET variable into array

I have a page with a form post to my script, I need to retrieve the message variable and enter it into my array

$params = array(
‘apikey’ => ‘xxxx’,
‘message’ => ‘$message’,
‘numbers’ => $results
);
Apparently Im not doing this right can someone help suggest the correct way?

what error you getting?

anyway you should get a notice like this:

Notice: Undefined variable: results in E:\Host\test.php on line 6

to avoid such notice use this

[php]

<?php $params = array( 'apikey' => 'xxxx', 'message1' => @$message, 'numbers' => @$results ); ?>

[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service