1.

Solve : email address?

Answer»

Is there any way to attach an email address to a WEB page other then using Outlook Express?<BR>Thanks, Drossyou mean, not mailto?Email Link
Quote from: michaewlewis on May 07, 2008, 01:24:21 PM

Email Link


By clicking that link your standard email program will open.you could use forms and cgi, depending on your host.You can use the built in function in PHP for sending mail.

Quote from: hmar on May 12, 2008, 12:34:29 PM
you could use forms and cgi, depending on your host.

If your host uses a Linux server READ this article: http://www.w3schools.com/php/php_mail.asp

If your host uses a Windows server read this: http://www.w3schools.com/asp/asp_send_email.asp

This is the way to use PHP mail:
Code: [Select]<html>
<body>
<?php
if(isset($_REQUEST['email']))
//if"email"isfilledout,sendemail
{
//sendemail
$email=$_REQUEST['email'];
$subject=$_REQUEST['subject'];
$message=$_REQUEST['message'];
mail("[emailprotected]","Subject:$subject",
$message,"From:$email");
echo"Thankyouforusingourmailform";
}
else
//if"email"isnotfilledout,displaytheform
{
echo"<formmethod='post'action='mailform.php'>
Email:<inputname='email'type='text'/><br/>
Subject:<inputname='subject'type='text'/><br/>
Message:<br/>
<textareaname='message'rows='15'cols='40'>
</textarea><br/>
<inputtype='submit'/>
</form>";
}
?>
</body>
</html>Kinda funny how a SIMPLE hotlinking question can turn into a MINI PHP tutorial.Quote from: CBMatt on May 15, 2008, 06:10:32 AM
Kinda funny how a simple hotlinking question can turn into a mini PHP tutorial.

Indeed... nice to see you again chris.What can I say?Quote from: michaewlewis on May 15, 2008, 09:22:37 AM
Quote from: CBMatt on May 15, 2008, 06:10:32 AM
Kinda funny how a simple hotlinking question can turn into a mini PHP tutorial.

Indeed... nice to see you again chris.

Thanks. School's out for a little bit, so I'm trying to spend a little more time around here.


Discussion

No Comment Found