Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: form not sending any data

  1. #11
    Join Date
    Mar 2006
    Illinois, USA
    Thanked 690 Times in 678 Posts


    No email validation can be perfect. It's a tradeoff. Personally I think filter_var() is so easy and accomplishes so much of the work that it's a good solution. There are other options and tradeoffs, but I don't see anything wrong with this on a practical level. And as traq said, the goal is just to sanitize the input for the form so that it's not used to send spam, etc.
    In the end, there's almost no way at all (aside from sending an email to check) to know whether an email address is actually valid. You can check if the domain exists (or at least if it's currently responsive, which if so isn't proof that it can receive email or if not doesn't mean the server didn't just crash), but you can't check whether a particular email account exists.
    Given that you can't get perfection, a simple and mostly effective strategy seems fine to me.

    However, I would agree that the OP might want to look at what you've posted elsewhere (as have others) about checking whether the receiving domain is valid and so forth. There are times when that is useful.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  2. #12
    Join Date
    Apr 2008
    Thanked 516 Times in 502 Posts
    Blog Entries


    Absolutely - and I really would like to hear your specific concerns. I am aware of a lot of those "trade-offs," but if there's something I hadn't considered before I'd like to know.

Similar Threads

  1. sending form data to another page
    By hemi519 in forum PHP
    Replies: 2
    Last Post: 01-04-2011, 06:11 AM
  2. Sending data to div class - How?
    By Coolname007 in forum JavaScript
    Replies: 0
    Last Post: 07-21-2009, 12:39 AM
  3. Sending Combo Boxes data to PHP
    By busi6292 in forum Flash
    Replies: 0
    Last Post: 01-12-2009, 09:46 PM
  4. php script not sending all data from a form
    By stealthmode666 in forum PHP
    Replies: 5
    Last Post: 01-06-2009, 06:52 PM
  5. Replies: 0
    Last Post: 04-06-2006, 05:54 PM


Posting Permissions

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