We can use htmlspecialchars to stip out html tags.
$name = $_POST['inputbox1'];
$name = htmlspecialchars($name);
echo "Welcome".$name;
Is there another alternative?
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.
If you’re looking to actually strip the tags, check out
strip_tags(), but if you’re looking for a semi-equivalent function, have a look athtmlentities().