+ 2
plese tell me what is problem here
<!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8"> <title></title> </head> <body> <form method="post" action="<?php echo $_SERVER ['PHP_FILE'];?>"> Usar name : <input type="text" name="usar"> <input type="submit"> </form> <?php if($_SERVER["REQUEST_METHOD"] == "POST"){ $name = $_REQUEST['usar']; if (empty($name)){ echo "I love you"; } else { echo "I hate you";} } ?> </body> </html>
1 ответ
0
Thank you for sharing your code, but do you also have an error message or description of what's going wrong for you? It'll be easier to hep with that info :)