All pastes #405005 Raw Edit

Creating a form

public php v1 · immutable
·published 2007-03-21 13:24 UTC
rendered paste body
main.html file:<html><head><!-- title of the page ofcourse ;) --><title>Form for Tzarnaz</title></head><body><!-- create a form using post (you can also use get) and sending the data to receive.php --><form method=post action=receive.php><!-- create a text input box named "message" --><input type="text" name="message"><!-- create a button to send the data to the other page --><input type="submit" value="Send data!"></form></body></html>receive.php file:<html><head><!-- title of the page ofcourse ;) --><title>Message for Tzarnaz</title></head><body><?php	$message = $_POST['message'];?><b>SuperGillis says:</b><br><?php echo $message; ?></body></html>