We provide webhosting for thousands of domains.
Transfer your domains to us and join our satisfied customers.
Domains from 5,99€. Renewal for the same price.
Mo-Fr: 08:00-20:00
Sa-Su: 10:00-18:00
Mo-Fr: 08:00-16:30
If you transfer your domain to us, we pay transfer fee for you.
Script for form submission
HTML form :
---------------------------------------------------
...
<form method=""post"" action=""submit.php"">
Firm:<input type=""text"" name=""Firm"" size=""10"" />
Contact:<input type=""text"" name=""Contact"" size=""10"" />
Email:<input type=""text"" name=""Email"" size=""10"" />
...
<input type=""submit"" value=""submit"" />
</form> ......
Create submit.php of the following form and put its name into the action attribute of your form :
--------------------------------------------------------------
HTML you want to have displayed after the form has been sent...
// spam injection attack test
// testing of variables sent via the post method
foreach($_POST as $field => $input) {
$input = stripslashes($input);
if(preg_match('/Content-Type:/i', $input)) $attack++;
if(preg_match('/bcc:/i', $input)) $attack++;
}
// testing of variables sent via the get method
foreach($_GET as $field => $input) {
$input = stripslashes($input);
if(preg_match('/Content-Type:/i', $input)) $attack++;
if(preg_match('/bcc:/i', $input)) $attack++;
}
if($attack) {
print ""Spam injection attack has been detected, the form has not been sent"";
exit;
}
$text="" Firm: $Firm
Contact: $Contact
Email: $Email . . . "";
mail(""address@domain.sk"",""Subject"",""$text"",""From:$email\n\r"");
?>
------------------------------------------------------------------
This script will send the mail to the email address address@domain.sk . The sender of the email will be the email address entered in the order form, so that you will be able to reply to the message immediately. The $text variable can be edited so that it also contains other form variables.
Further information can be found at http://www.php.sk/ , http://www.php.net/ .
Script templates can be found at http://www.hotscripts.com/
"



Print page


