Skip navigation.
Home

Add new comment

Oh man, what happened to all those dollar signs? O_o

Anyways, here is a little improvement. Where it says:

echo $message;

It should say:

echo "$message";

It's too easy for the server to just print the variable. It must do variable substitution!

P.S.: I've seen lots of echo instructions like the latter in code written by beginners. ^_^

Reply




*

  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <p> <br>
  • Web and e-mail addresses are automatically converted into links.