Some var not working

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pinehead18
Forum Contributor
Posts: 329
Joined: Thu Jul 31, 2003 9:20 pm

Some var not working

Post by pinehead18 »

Code: Select all

$user .= "Yoda";
  $message .= "http://www.kcchristians.com/myprofile/".$user.", ".$user." has poked you
on KCChristians.com!";
        
                mail($email, 'You\'ve bene POKED!', $message, 'FROM: no-reply@kcchristians.com');
When the email sends it does not display $user..

Any ideas?

thank you
Anthony
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

is $user set above?

if not you can't concat anything to it using "." cause it doesn't exist.

try just using:

Code: Select all

$user = "yoda";
Post Reply