+ 1

Why $_POST[] isn't working in Code playground.

<?php if(isset($_POST['jay'])) { echo "Your name"; } else { echo "<form method=post> <input type=text name='jay'> <input type=submit value=submit> </form>"; } ?> must be code playground not accepting form input?

2nd Aug 2017, 1:57 PM
DEVIL
DEVIL - avatar
1 Answer
0
<?php if(isset($_POST['submit'])) { echo "Your name"; } else { echo "no name"; ?> <html> <form method="post"> <input type="text" name="jay"> <input type="submit" value="submit"> </form> <html>
2nd Aug 2017, 4:29 PM
Mohit Mehta
Mohit Mehta - avatar