![]() |
| | #5 (permalink) | |
| Moderator Aficionado Join Date: Mar 2003 Age: 33
Posts: 147
![]() | Quote:
__________________ Misc Tutorials: Interval Manager - Tutorial on Flash Interval Managers Ajax Tutorial - Simple Ajax tutorial for beginners CSS Tabs - Tutorial on creating CSS tabs Posting Guide - 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: 41
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. |
| | |
| | #11 (permalink) |
| Member Enthusiast Join Date: Aug 2011
Posts: 64
![]() | Perl isn't that challenging, you just have to comprehend all the features and how to utilize them. That should get you began. Cubicle Curtains | hospital curtains |
| | |
| | #12 (permalink) |
| Junior Member Join Date: Jan 2012
Posts: 2
![]() | Is it possible to have a form load onto an html page, if the code is in a external file? If so how.? This is kind of hard to explain what I want to do, but I'll give it a shot... If this is possible to do in javascript and/or html i would prefer that, but if its possible some other way thats fine to. If you don't understand what I'm aksing you can email me and I'll try to explain it better... |
| | |
![]() |
| 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 |