tefuzz Posted April 11, 2009 Share Posted April 11, 2009 still learning i have functions that populate drop down lists for my form, i just want non breaking spaces between them...so i used this line echo (getMonths("month") . " " . getDays("day") . " " . getYears("year", "1900", "2009") . "\n</td>\n</tr>"); but it does not echo the spaces, they don't even come up in the page source...actually...4 spaces come up after all the code tat gets created from the function, but nowhere else...the lists show, and the </td> and </tr> are in the page source, but not the spaces...am I thinking too hard for this Quote Link to comment https://forums.phpfreaks.com/topic/153587-solved-echo-output-not-what-i-expected/ Share on other sites More sharing options...
MasterACE14 Posted April 11, 2009 Share Posted April 11, 2009 try... echo (getMonths("month") . " " . getDays("day") . " " . getYears("year", "1900", "2009") . "\n</td>\n</tr>"); Regards, ACE Quote Link to comment https://forums.phpfreaks.com/topic/153587-solved-echo-output-not-what-i-expected/#findComment-807054 Share on other sites More sharing options...
tefuzz Posted April 11, 2009 Author Share Posted April 11, 2009 try... echo (getMonths("month") . " " . getDays("day") . " " . getYears("year", "1900", "2009") . "\n</td>\n</tr>"); Regards, ACE same result... Quote Link to comment https://forums.phpfreaks.com/topic/153587-solved-echo-output-not-what-i-expected/#findComment-807055 Share on other sites More sharing options...
tefuzz Posted April 11, 2009 Author Share Posted April 11, 2009 actually if i do the following... the ZZZ shows up after the 3 drop down lists... ??? echo (getMonths("month") . " ZZZ " . getDays("day") . " " . getYears("year", "1900", "2009") . "\n</td>\n</tr>"); Quote Link to comment https://forums.phpfreaks.com/topic/153587-solved-echo-output-not-what-i-expected/#findComment-807060 Share on other sites More sharing options...
Philip Posted April 11, 2009 Share Posted April 11, 2009 Not sure if this would make much a different, but try passing them as parameters to echo: echo getMonths("month")," ",getDays("day")," ",getYears("year", "1900", "2009"),"\n</td>\n</tr>"; If not, make sure error_reporting(E_ALL); is a the top of your script. Quote Link to comment https://forums.phpfreaks.com/topic/153587-solved-echo-output-not-what-i-expected/#findComment-807061 Share on other sites More sharing options...
tefuzz Posted April 11, 2009 Author Share Posted April 11, 2009 Not sure if this would make much a different, but try passing them as parameters to echo: echo getMonths("month")," ",getDays("day")," ",getYears("year", "1900", "2009"),"\n</td>\n</tr>"; If not, make sure error_reporting(E_ALL); is a the top of your script. worked like a charm...thanks! Quote Link to comment https://forums.phpfreaks.com/topic/153587-solved-echo-output-not-what-i-expected/#findComment-807066 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.