dadamssg Posted March 26, 2009 Share Posted March 26, 2009 i want to create a variable that sticks two other variables side by side. for example $email = $_POST['email']; $fname = $_POST['fname']; $combine = $email + $fname echo $combine; so if the values of email is [email protected] and the value of fname is bill, when i echo $combine ill get [email protected] right now i just get a '0' Link to comment https://forums.phpfreaks.com/topic/151253-solved-dumb-question/ Share on other sites More sharing options...
wmguk Posted March 26, 2009 Share Posted March 26, 2009 try $combine = '$email'.'$fname'; Link to comment https://forums.phpfreaks.com/topic/151253-solved-dumb-question/#findComment-794535 Share on other sites More sharing options...
dadamssg Posted March 26, 2009 Author Share Posted March 26, 2009 hey thanks...forgot about the period $combine = $email.$fname works Link to comment https://forums.phpfreaks.com/topic/151253-solved-dumb-question/#findComment-794539 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.