Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Contact Page</title>
- </head>
- <body>
- <?php
- if ($submit){
- mail( "address@example.com", "Subject Here", "The following message was sent using your contact form.\n".$message."\n", "From: $email" );
- echo "Thank you for contacting me, ....";
- }
- else
- {
- echo "<form method='post' action='contact.php'>
- <br><br>
- Your Email Address: <input name='email' type='text' size='34'><br><br>
- <textarea name='message' rows='20' cols='50'></textarea><br>
- <input name='submit' type='submit' value='Send'>
- </form>";
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement