View difference between Paste ID: bCftEi4P and a9AFy2vW
SHOW: | | - or go back to the newest paste.
1
<?php
2
error_reporting(E_ALL ^ E_NOTICE);
3-
if (isset($_POST['submit']))
3+
if (isset($_POST['submit_button']))
4
{
5
    echo "<p>Welcome<strong> ".$_POST["user"]."</strong></p><br/><br/>";
6
    echo "<i>".$_POST["message"]."</i>";
7
}
8
?>
9
10
<form action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="POST">
11
<p>Name:</p>
12
<input type="text" name="user" placeholder="Name">
13
<br/><br/>
14
<p>Message</p>
15
<textarea name="message" rows="5" cols="45"></textarea>
16-
<input type="submit" value="SEND THIS THINGY"/>
16+
<input type="submit" name="submit_button" value="SEND THIS THINGY"/>
17
</form>