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 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! 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; 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>"; 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 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. 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
Archived
This topic is now archived and is closed to further replies.