Probably just a problem with register_globals

Try:

$contents = "{$_REQUEST['firstname']}, {$_REQUEST['lastname']}, {$_REQUEST['email']}";

Marco

------------
php|architect - The magazine for PHP Professionals
The monthly worldwide magazine dedicated to PHP programmers
Check us out on the web at http://www.phparch.com

On Sat, 2002-11-23 at 18:13, Michael Sharp wrote:
> I have a html form that has just 3 fields and each are defined as
> name="firstname", name="lastname", and name="email" . The action is
> calling a sendmail.php file and the method is POST. Here is the contents
> of sendmail.php:
> 
> <?php
> $to = "[EMAIL PROTECTED]";
> $subject = "Form Submission";
> $contents = "$firstname, $lastname, $email";
> mail ($to, $subject, $contents);
> header ("Location: http://probsd.org/rlewis/thankyou.txt";);
> ?>
> 
> When submitting the form, mail gets sent to [EMAIL PROTECTED] with the
> subject defined in sendmail.php, but the contents simply displayes both of
> the commas from $contents =  and not $firstname, $lastname, and $email.
> 
> Syntax error or what?
> 
> Michael
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to