FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Contact page without outlook





polopolo
Can I get a script for my website to use the contact page without using outlook (express)?
dandelion
Yes, of course, you can.
Below is a very basic example.
Code:
<?php
    $to = 'you@example.com';
    if (!empty($_POST)) {
        mail($to, $_POST['subject'], $_POST['message'], 'From: '.$_POST['from']);
    }
?>

<form action="<?=$_SERVER['SCRIPT_NAME']?>" method="post">
<p>From: <input type="text" name="from" /><br />
Subject: <input type="text" name="subject" /><br />
<textarea name="message"></textarea><br />
<input type="submit" /></p>
</form>
Related topics
Secure Login on the first page without https://
Login without server scripting
Best Freeware
phpbb forum giving blank page in IE
AJAX tutorial [2nd part now updated]
Outlook 2007/2003 Help with Contacts please
My Personal Web Site - especially on the Japan trip
php page refresh
Speeding up the phpBB 2 forum index page
HELP! My account unactivated itself!!!!!
Preloading A Page
HTML/PHP Help (Contact Box)
Make page size relevent to individuals resolution
Help Pleasee, My Submit form dont submit on google chrome
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.