Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2009
    Posts
    43
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Sendmail.php File Processing Empty

    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.

  • #2
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,020
    Thanks
    2
    Thanked 313 Times in 305 Posts
    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 validation
    Javascript 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.
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.

  • #3
    New Coder
    Join Date
    Jul 2009
    Posts
    43
    Thanks
    13
    Thanked 0 Times in 0 Posts
    Yes that makes sense. Looks like I have to add server side validation then. Thanks.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •