![]() |
| | #1 (permalink) |
| Member Follower Join Date: Apr 2006
Posts: 32
![]() | Does anyone know or use a code (i think php?) that will send the input on a form, to a specified email? Thanks in advance.
__________________ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
| | |
| | #3 (permalink) |
| Member Follower Join Date: Apr 2006
Posts: 32
![]() | alright thanks.
__________________ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
| | |
| | #5 (permalink) | |
| Moderator Aficionado Join Date: Mar 2003 Age: 31
Posts: 147
![]() | Quote:
__________________ Misc Tutorials: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - Tutorial on Flash Interval Managers To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - Simple Ajax tutorial for beginners To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - Tutorial on creating CSS tabs To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - Some things you should read before posting | |
| | |
| | #7 (permalink) |
| Member Enthusiast Join Date: May 2006
Posts: 91
![]() | Code: <html>
<head>
<title> </title>
</head>
<body>
<form action="Contact_Form.php" method="GET">
<p />
<textarea type="text" name="firstname" rows="1"> First Name </textarea>
<br />
<p />
<textarea type="text" name="lastname" rows="1"> Last Name </textarea>
<br />
<br />
<textarea name="comment" id="formstyle" type="text" cols="30" rows="20"> Body </textarea>
<br />
<input type="submit" id="formstyle" name="submit" value="submit">
</form>
<?php
if(isset($_GET['submit']))
{
$to = 'yourname@yourdomain.com';
$firstname = $_GET['firstname'];
$lastname = $_GET['lastname'];
$comment = $_GET['comment'];
echo '<br />';
echo $firstname;
echo '<br />';
echo $lastname;
echo '<br />';
echo $comment;
}
mail($to, $firstname, $lastname, $comment);
?>
</body>
</html>
|
| | |
| | #10 (permalink) |
| Junior Member Casual Browser Join Date: Apr 2006 Age: 39
Posts: 23
![]() | Since the question was how to manage this in HTML I will assume a little javascript could be used as well. The href attribute of the <A> tag allows a mailto: to be used. You can reference an anchor tag with an id in javascript as well assigning the value of form elements to the href attribute. This way if our friend in New York isn't running a server side language he can get the same results. |
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Send an Email with ASP/PHP/Perl | Cota | Tutorials | 3 | 01-03-2007 08:13 PM |
| New Yahoo Worm Exploits email vulnerability | chameleon | General Conversation | 0 | 06-13-2006 02:41 PM |