Register Globals
| From: | John Taylor-Johnston | Date: | Fri, 04 Nov 2005 02:17:39 +0000 |
| Subject: | Register Globals | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-225119@lists.php.net to get a copy of this message | ||
Ok, you are all used to working with register_gloabsl=off.
mail($to, stripslashes($subject), wordwrap($message, 60), "From: $from\r\n");
I change this line to:
mail($to, stripslashes($_POST["subject"]), wordwrap($_POST["message"], 60), "From: $_POST["from"]\r\n");
and I get:
Parse error: parse error, unexpected '\"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /www-html/emailer/index.html on line 41
What is the problem?
John