Jump to content

[SOLVED] echo output, not what I expected...


tefuzz

Recommended Posts

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  :D

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.