View Single Post
Old 06-30-2006   #3 (permalink)
GoldNetX
Recursively call who?
 
GoldNetX's Avatar
 
Join Date: Nov 2003
Location: Pittsburgh, PA
Posts: 294

Send a message via AIM to GoldNetX
If you want to use PHP you could do the following:

A the top of the page:
Code:
<?php

if (isset($_POST['emailSubmit']))
      mail($_POST['emailTo'], $_POST['emailSubject'], $_POST['emailBody']);

?>
Then use this as your form:

Code:
<form method="POST" action="<?php echo $_SERVER['PHPSELF']; ?>
<input type="hidden" name="emailTo" value="whoToSendTo@Somewhere.com" />
<input type="text" name="emailSubject" />
<textarea name="emailBody"></textarea>
<input type="submit" name="emailSubmit" value="Send Email" />
</form>
Just replace => whoToSendTo@Somewhere.com, with whoever you want the email to go to.
__________________

www.gusmayo.com
- Maybe a story or two -


www.jaloobie.com
... your new home ...

www.webinkproductions.com
- professional web application design -
GoldNetX is offline