Hi Marian, Take the double quotes out. e.g. $email = $_POST['email'];
----- Original Message ----- From: "Marian Briones" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, May 20, 2005 3:04 PM Subject: [php-list] Trying to do the $_POST['varname'] method and it's not working >I tried to define my variables in this fashion and got this message: > > Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, > expecting T_STRING or T_VARIABLE or T_NUM_STRING in > /home/user/public_html/myscript.php on line 237 > > Line 237 is: > $email = "$_POST['email']"; > $first = "$_POST['first']"; > $last = "$_POST['last']"; > > (etc) > > Help???? Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
