cb2004
12-07-2010, 03:01 PM
On each page of my website I have a form, I want this to be the users email sent to my email. So far I have this but no joy on the send part. What am I doing wrong.
<form action="" method="post">
<?php
$sent = $_POST['newsletter'];
if (!$sent) {
echo '<input name="newsletter-email" type="text" id="wo" />
<input type="image" name="newsletter" id="wogo" src="img/wogo.png" />';
}
elseif ($sent) {
echo 'Sent';
}
?>
</form>
<form action="" method="post">
<?php
$sent = $_POST['newsletter'];
if (!$sent) {
echo '<input name="newsletter-email" type="text" id="wo" />
<input type="image" name="newsletter" id="wogo" src="img/wogo.png" />';
}
elseif ($sent) {
echo 'Sent';
}
?>
</form>