more touchup of mailing stuff
This commit is contained in:
parent
cfcb95b3ad
commit
136a2dbe10
@ -24,6 +24,10 @@ function mkheader($title, $bgcolor) {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.block {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/*]]>*/
|
||||
</style>
|
||||
</head>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
require_once("_head.php");
|
||||
|
||||
mkheader("looping!", "#eee");
|
||||
mkheader("mailing!", "#eee");
|
||||
|
||||
?>
|
||||
|
||||
@ -13,9 +13,9 @@ mkheader("looping!", "#eee");
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||
mail(
|
||||
$_POST['email-toaddr'],
|
||||
$_POST['email-subject'],
|
||||
$_POST['email-message'],
|
||||
$_POST['toaddr'],
|
||||
$_POST['subject'],
|
||||
$_POST['message'],
|
||||
"From: {$_SERVER['PHP_SELF']} <php@localhost>"
|
||||
);
|
||||
?><p>Sent!</p><p><a href="<?php echo $_SERVER['PHP_SELF']; ?>">clear this</a></p><?php
|
||||
@ -23,17 +23,19 @@ mkheader("looping!", "#eee");
|
||||
} else {
|
||||
?>
|
||||
|
||||
<form name="email-send" action="" method="POST">
|
||||
<label for="email-toaddr">To:</label>
|
||||
<input type="text" id="email-toaddr" name="email-toaddr" />
|
||||
<p>Send an email to somebody!</p>
|
||||
|
||||
<label for="email-subject">Subject:</label>
|
||||
<input type="text" id="email-subject" name="email-subject" />
|
||||
<form name="send_email" action="" method="POST">
|
||||
<label class="block" for="toaddr">To:</label>
|
||||
<input type="text" id="toaddr" name="toaddr" />
|
||||
|
||||
<label for="email-message">Message:</label>
|
||||
<textarea name="email-message" id="email-message" rows="10" cols="80"></textarea>
|
||||
<label class="block" for="subject">Subject:</label>
|
||||
<input type="text" id="subject" name="subject" />
|
||||
|
||||
<label class="block" for="message">Message:</label>
|
||||
<textarea name="message" id="message" rows="10" cols="80"></textarea>
|
||||
|
||||
<input type="submit" name="email-submit" value="Send" />
|
||||
<input class="block" type="submit" name="submit" value="Send" />
|
||||
</form>
|
||||
|
||||
<?php
|
||||
|
Loading…
Reference in New Issue
Block a user