Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Form calls 2 php functions

I have an html form which uses a PHP file to submit data by email. I want to add some code (which I already have) to generate random numbers for spam protection. Can I call another PHP file within my form?

Here is the code that goes in the form:

<form name="mail" action="go.php" method="post" onsubmit="return CheckData()">
    <input type="text" name="q">
    <input type="submit" name="Submit" value="OK">
</form>

I am a real novice with PHP so any help would be appreciated.

LozFromOz


1 Answers

you can do it with image in your form that call to php file.

the famous is to use captcha,

read this link :

Stopping scripters from slamming your website hundreds of times a second

a good captcha to insert in php :

http://recaptcha.net/plugins/php/

like image 96
Haim Evgi Avatar answered Feb 13 '26 14:02

Haim Evgi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!