treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Need people to test my contact form

  • I just got my contact form up and running I need as many people as possible to fill it out and send it. Post a comment if you did so I can compare it to the contacts. thanks!
  • Why do you need us to submit the form? Just make up a bunch of names and emails and do it yourself. You'll probably save loads of time by doing so, instead of waiting for us to do it.
  • I hope you have server side validation and not just javascript
  • What do you mean by server side validation?
  • Your validating with javascript which is client side. Are you validating with something like PHP which is server side.

    Your form accepts an emails like:
    hello@hello.hello
    hello@hello.hello.hello

    Which arn't valid
  • I've never done that before how do I do it.
  • in the PHP you use to send the e-mail it's something like

    <?php
    /*Complicated regex which validates emails*/
    $regex = "\[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\";

    /*Get the email address the user entered
    $email = $_POST['Email'];

    /*if the email is valid. then this is true*/
    if(preg_match($regex,$email)){
    /*code to send the email in the contact form*/
    }

    ?>


    This is ofcourse assuming that you are using PHP to send the data to you.
  • Best email phishing ever!

    Heh, like others have said, just spam it with random info to test it.

    Then throw in some validation, good to go. :)
  • Sorry for asking people to fill it out I didn't think about making up my own stuff. And i Will try the validation thanks.