≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Spam via the contact form
Posted by:
(you are not logged in)
Enter the missing letter in: "Inte?national"
(you are not logged in)
Text:
[quote][b][/b] wrote: You could probably add a nother field to the form. Name that field "verification", and tell your users to type a specific word into it. Let it be "foobar" in this example. So in your code, you now only need to check for this field to be foobar: [code]$text = ""; foreach($_POST as $name => $value) { $text .= "$name : $value\n"; } if ($text != "" && $_POST["verification"] == "foobar") { echo 'Thanks for contacting us.'; mail("youremail@example.com", "Contact form request", $text); } else if ($text != "") echo 'Please enter the verification field correctly.';[/code][/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact