php if else statement
I have created this code and I want the user when he/she enter number 1 or 2 and it will show hola but now you must write 1 or 2 until It showing the message I want it when enter 1 show the message or 2 can any one help
$name = $_POST['name']; if ($name =="1 or 2") echo "hola";
1 Answer
its very basic
just it will be if ($name == \"1\" or $name == \"2\")full Reference: Posted: MacOS 1 of 1 people found this answer helpful. Did you? Yes No |
© Advanced Web Core. All rights reserved