I want to echo this line in PHP simply by using “echo”, but it doesn’t work. How can I fix it?
echo '<p><input type="button" name="Back" value="Back" onclick="window.location ='viewusers.php'" /></p>'
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s because you’re using
"inside what you want to echo. All you need is escape quotes.This should do it:
Another option is to do it in blocks. This would be better if your doing a lot of echos like that. Such as:
Hope it helps!