+ 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?
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>