Jump to content

should be easy answer please!


astralaaron

Recommended Posts

Put { } before and after $_POST['screenName'].

<?php  echo "You entered {$_POST['screenName']}";?>

You can also use ' instead of " for strings, the difference between the two is that ' doesn't output that actual value of the variable, but output the variable name and doesn't output the special characters like \n, \r, etc. It's suppose to be a little faster when using ' as it doesn't have to do the extra work of finding the values of the variables/special characters and you don't have to escape " all the time when outputting the string with (X)HTML/XML on attribute values.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...