Mail Upload Parse Error with PHP 5
Question:
I am using v1.0.6 of the Mail Upload add-on pack for Pure PHP Upload.
This is not a bug into the extension. The problem is into the way you set the value of the field fromName.
I am using v1.0.6 of the Mail Upload add-on pack for Pure PHP Upload.
Here is the exact error: Parse error: syntax error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in
/.../special-requests.php on line 60
Answer:
This is not a bug into the extension. The problem is into the way you set the value of the field fromName.
To fix this error you have to change your 3rd line from:
$muf->fromName = "((isset($_POST["Name"]))?$_POST["Name"]:"")";
to:
$muf->fromName = ((isset($_POST["Name"]))?$_POST["Name"]:"");
Comments
Be the first to write a comment
You must me logged in to write a comment.