...

View Full Version : Sendmail.php File Processing Empty



GenVic
09-08-2009, 04:33 PM
Could bots like the Google indexing bot be triggering the sendmail.php file? I've been randomly receiving empty emails, the form that this file itself is referenced from has validation, so I don't think that's the problem.

CFMaBiSmAd
09-08-2009, 04:39 PM
Could bots like the Google indexing bot be triggering the sendmail.php file?
Yes, if the code in your file is not checking that a form was submitted and is not validating the data from the form.


the form that this file itself is referenced from has validationJavascript form validation only works in browsers and in browsers that have javascript enabled. Bot scipts that search engines and hackers use don't care what you do on your form, they access the form processing code directly.

Javascript validation only helps point out data errors to your legitimate visitors that have javascrpt enabled and it slightly reduces the number of HTTP requests to your web server for forms that are not filled in correctly. ALL external data cannot be trusted and MUST be validated when it is received on the server.

GenVic
09-08-2009, 04:43 PM
Yes that makes sense. Looks like I have to add server side validation then. Thanks.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum