sungpeng Posted June 30, 2010 Share Posted June 30, 2010 $hello=$_POST['happy']; $hello2=$_POST['hour']; $fun=$hello. $hello2; echo "$fun"; The result for the above code is happyhour. Check how to have a space in between "happy" and "hour" so it appear as "happy hour" instead of "happyhour". Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted June 30, 2010 Share Posted June 30, 2010 Put a space in the line, either <?php $fun=$hello . ' ' . $hello2; ?> or <?php $fun="$hello $hello2"; ?> Ken Quote Link to comment Share on other sites More sharing options...
sungpeng Posted June 30, 2010 Author Share Posted June 30, 2010 thk ken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.