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". Link to comment https://forums.phpfreaks.com/topic/206259-have-a-spacebar-in-between-_post/ 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 Link to comment https://forums.phpfreaks.com/topic/206259-have-a-spacebar-in-between-_post/#findComment-1079065 Share on other sites More sharing options...
sungpeng Posted June 30, 2010 Author Share Posted June 30, 2010 thk ken Link to comment https://forums.phpfreaks.com/topic/206259-have-a-spacebar-in-between-_post/#findComment-1079067 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.