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