jamieh Posted May 18, 2008 Share Posted May 18, 2008 Hi there, i keep getting an error with this line of code: print "Teamname : "$_POST['teamname']" </ br>"; It works when the $_POST is at the start I'm really confused. Many thanks, Jamie Quote Link to comment https://forums.phpfreaks.com/topic/106163-solved-need-help-printing-_post/ Share on other sites More sharing options...
neutra Posted May 18, 2008 Share Posted May 18, 2008 You're totally missing the operands to connect the three parts, namely the dot-operand. You can think of it as a plus sign, only for strings: echo "string one" . "string two" . $a_variable . "string three"; Hope that helped you out a little Cheers! Quote Link to comment https://forums.phpfreaks.com/topic/106163-solved-need-help-printing-_post/#findComment-544162 Share on other sites More sharing options...
runnerjp Posted May 18, 2008 Share Posted May 18, 2008 $teamname = $_POST['teamname']; echo $teamname; Quote Link to comment https://forums.phpfreaks.com/topic/106163-solved-need-help-printing-_post/#findComment-544166 Share on other sites More sharing options...
sasa Posted May 18, 2008 Share Posted May 18, 2008 print "Teamname : \"$_POST[teamname]\" </ br>"; Quote Link to comment https://forums.phpfreaks.com/topic/106163-solved-need-help-printing-_post/#findComment-544169 Share on other sites More sharing options...
jamieh Posted May 18, 2008 Author Share Posted May 18, 2008 Thank you ever so much my friend! Jamie Quote Link to comment https://forums.phpfreaks.com/topic/106163-solved-need-help-printing-_post/#findComment-544173 Share on other sites More sharing options...
jamieh Posted May 18, 2008 Author Share Posted May 18, 2008 or friends Thanks Jamie. Quote Link to comment https://forums.phpfreaks.com/topic/106163-solved-need-help-printing-_post/#findComment-544174 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.