Jump to content

$REQUEST variable


redgunner

Recommended Posts

Ah Thrope beat me to it but anyway.

$SMS->send('44123456789, 'SMS Alert from $_REQUEST["emailaddress"]');

Since you are using single quotes the variable value wont be placed in the string.

 

Using double quotes like the following will also work

$SMS->send('44123456789, "SMS Alert from {$_REQUEST['emailaddress']}");

Link to comment
https://forums.phpfreaks.com/topic/170246-request-variable/#findComment-898043
Share on other sites

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.