Jump to content

should be easy answer please!


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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...