For Programmers: Free Programming Magazines  


Home > Archive > PHP on Windows > April 2005 > RE: [PHP-WIN] Combinig 2 Variables into 1









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PHP-WIN] Combinig 2 Variables into 1
Jin Yong Wu

2005-04-29, 3:57 am


dot operator (.) can not solve your problem?

-----Original Message-----
From: Maxwell Brodie [mailto:max.b@shaw.ca]
Sent: Friday, April 29, 2005 11:03 AM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Combinig 2 Variables into 1


Hello,

Could someone help me out here, I am tryimg to make two variables into one
for example:

$to = 'server';
$subject = test;


$message = $variable1, $variable2;


$headers = 'From: webmaster@' . $_SERVER['SERVER_NAME'] . "\r\n" .
'Reply-To: webmaster@' . $_SERVER['SERVER_NAME'] . "\r\n" .
'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);

My problem is that I need to get "variable1" and "variable2" into one
variable "message", so that it will work with PHP's mail functions.

Thank You!

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







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com