This tutorial is going to explain how to allow people submit forms, without opening there email (Hotmail,Outlook, etc..)
First of all you are going to need a Form like this for example:
you can change:Code:<form name="form1" id="form1" method="post" action="confirm.php"> Name:<input type="text" name="Name"> E-mail:<input type="text" name="E-Mail"> Reason:<select name="Reason"> <option selected>- Choose a Reason</option> <option>// - - - - - - - - - - -</option> <option>Your Option 1</option> <option>Your Option 2</option> <option>Your Option 3</option> <option>Your Option 4</option> <option>- - - - - - - - - - - \\</option></select> Message: <textarea name="message" rows="4" cols="30"></textarea> URL of File*: <input name="url" type="text" value="http://"> <input name="Send" type="submit" id="Send" value="Send"> <input type="reset" name="Reset" value="Reset">
to whatever you want to call your confirm page but it must be saved as .phpCode:action="confirm.php"
now the code for confirm.php
You will need to change this code to correspond with you/your form, you need to changeCode:<?php $receiver = "[email protected]"; if(isset($_POST["send"])){ $name = $_POST['name']; $website = $_POST['website']; $email = $_POST['email']; $msg = $_POST['msg']; $ip = $REMOTE_ADDR; $browser = $_SERVER['HTTP_USER_AGENT']; if(empty($name)){echo("No Name Entered<br />");} if(empty($email)){echo("No E-Mail Entered<br />");} if(empty($msg)){echo("No Message Entered<br />");} if(!empty($name) && !empty($email) && !empty($msg)){ $headers = "MIME-Version: 1.0"; $headers .= "Content-type: text/html; charset=iso-8859-1"; $headers .= "From: ".$email.""; $message = "Name: \n" . "Email: $E-Mail\n" . "Subject: $Reason\n" . "Message: $message\n" . "File URL: $url\n" . "IP: $ip\n" . "Browser: $browser"; mail($receiver, "emailsubject", $message); echo( " Thank you <i>$Name</i> for your E-mail " ) } } ?>
to your email address and you can changeCode:$receiver = "[email protected]";
to your personalised message !This will only work if you convert some HTML to PHP Click Here to use an online converter!Code:echo( " Thank you <i>$Name</i> for your E-mail " )
If you have basic PHP coding knowledge you will know how to change the form and change the confirm page so everything will be submitted but if not just use that form
(2nd Tutorial, hope it helps )





2nd Tutorial, hope it helps )
Reply With Quote



