Try

 

$email = $_POST['email'];
$first = $_POST['first'];
$last = $_POST['last'];

 

   _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Marian Briones
Sent: 20 Mayis 2005 Cuma 17:04
To: [email protected]
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:
  HYPERLINK
"http://groups.yahoo.com/group/php-list"http://groups.yahoo.com/group/php-li
st 




   _____  

Yahoo! Groups Links

*       To visit your group on the web, go to:
HYPERLINK
"http://groups.yahoo.com/group/php-list/"http://groups.yahoo.com/group/php-l
ist/
  
*       To unsubscribe from this group, send an email to:
HYPERLINK
"mailto:[EMAIL PROTECTED]"php-list-un
[EMAIL PROTECTED]
  
*       Your use of Yahoo! Groups is subject to the HYPERLINK
"http://docs.yahoo.com/info/terms/"Yahoo! Terms of Service. 


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.13 - Release Date: 19.05.2005



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.13 - Release Date: 19.05.2005
 


[Non-text portions of this message have been removed]



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/
 


Reply via email to