This website uses cookies to improve user experience. By using our website you consent to all cookies in accordance with our Cookie Policy.
FAQ

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.

Support

FAQ

Others

HOTLINE  
+421 221 028 430
E-MAIL support
support@exohosting.com
ICQ support
213 057 503
ONLINE support

Mo-Fr: 08:00-20:00
Sa-Su: 10:00-18:00

Economy

Mo-Fr: 08:00-16:30

Free transfer of .sk domain

If you transfer your domain to us, we pay transfer fee for you.

Script for form submission

seen: 1483 | Date added: 05.09.2010 | rating:
"

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/

"
Was this article helpful?
no
Hodnotenie 2.74/5 (574 hlasov)
yes

Related topics