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 whatever@gmail.com and the value of fname is bill, when i echo $combine ill get whatever@gmail.combill right now i just get a '0' Quote 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'; Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/151253-solved-dumb-question/#findComment-794539 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.