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


PHP contact script...





Diablosblizz
I need a php contact script for my site.. I googled a little but came up with nothing. I also tried pixel2life.com and that didn't help me.

So my question is: where did you get your contact script from?

Thanks!
ncwdavid
What do you mean by a contact script? Something where you type yout email,subject and the message and click send and it sends it to a set email address?
handa
Is this useful:

Code:
<?php
$submit = $_POST['submit'];
if(!isset($submit)){
echo "<form action='$_SERVER[PHP_SELF]' method='post'>
Name:<input type='text' name='name'><br>
Email:<input type='text' name='email'><br>
Message:<br>
<textarea name='message' cols='40' rows='15'></textarea><br>
<input type='submit' name='submit' value='send'>
</form>";
}else{
$to="me@email.com";
$from=$_POST['email'];
$message=$_POST['message'];
$subject="Title";
$submit=$_POST['submit'];
$headers = "From: $from";
if(mail($to,$subject,$message,$headers)){
echo "Email Sent";
}else{
echo "Email Sending Failed";
}
}
?>
[FuN]goku
would it kind of be like my xfire contact script?
Take a view here.
http://anzerou.sound-hosting.co.uk/xfire
Related topics
Hot or Not PHP-Nuke script
What's the best PHP Wiki script?
problem with a php randomizer script
Install PHP Teamspeak script
php mailing script
[php]putting script fragments together?
does anyone know the contact script and the comment pages
vraagje : contact script
Php voting script needed (URGENT)
PHP Get script name?
PHP logging script
contact form with IP feature ?
AJAX and PHP contact form
need help in a simple php register script based on flat file
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.