Home / News Login Jukebox Affiliation Contact Welcome: 38.103.63.61
Final Fantasy
PHP Tutorials
If you are looking for a contact form here is an easy customisable php script which will make your contacting page an easier way of making.

Open any type of text editor for example, Notepad and copy and paste this code and save it as mail.php:

The Code

<?php

//variables (change these)

$youremail = "name@domain.com";
// your email address

$subject = "Contact";
// the subject of the email

$thankyou = "thankyou.php";
// thank you page

// don't change anything else

if($email == ""){
?>
No email address added. Please go back.<br/>
<?php
}elseif($name == ""){
?>
No name added. Please go back.<br/>
<?php
}elseif($message == ""){
?>
No message added. Please go back.<br/>
<?php
}else{

$msg = ereg_replace("\\\'", "'", $message);
$msg = ereg_replace('\\\"', "\"", $msg);
$message1 = "from: $name\nemail: $email\nmessage:\n$msg1";

mail($youremail, $subject, $msg, "From: $email\r\nReply-to: $email\r\n");
?>
<meta http-equiv="refresh" content="0; url=<?echo $thankyou;?>"">
<?php
}
?>

*You don't have to have a thank you page if you dont need it you can just
make it index.php or whatever page*

Now for the form:

<form action="mail.php" method="post">
Name <input type="text" name="name"><br/>
Email addess <input type="text" name="email"><br/>
Message<br/>
<textarea name="message" cols="40" rows="5"></textarea><br/>
<input type="submit" value="send"><br/>
</form>


FFReign Features:

Final Fantasy XII
All the Final Fantasy XII information you need!

AMV
Watch the featured Anime Music Video on Advent Children here!

Affiliate with us!
Click here to apply to be FFReign's affiliate!