Sorry - new to PHP, but I've tried everything I can think of to fix this. I'm receiving a syntax error, unexpected T_STRING on the following line:
mail($my_email,$subject,$message,$headers);
I'm fairly certain it has something to do with the $my_email variable, defined as:
$my_email = $_REQUEST['recipient']
In the form I've defined this variable as follows:
<input type="hidden" name="recipient" value="name@something.com" />
The form is posted on a page in Joomla on GoDaddy.com. I've turned off the e-mail cloaking.
I'm also attaching the entire php file - I downloaded the original from FormtoEmail.com.
Any ideas? I've tried enclosing it in parens $my_email = ($_REQUEST['recipient']) but the same error occurs.
Sorry - I know it's probably something easy but I'm not seeing it.
Thanks!