heenan0420's Profile User Rating: -----

Reputation: 0 Apprentice
Active Members
Active Posts:
61 (0.04 per day)
07-October 11
Profile Views:
Last Active:
User is offline Feb 23 2016 01:59 PM

Previous Fields

Dream Kudos:
Icon   heenan0420 has not set their status

Posts I've Made

  1. In Topic: Problem with Contact Form

    Posted 19 Feb 2016

    Thanks everyone for your input and help. I have got the form working now and it sanitizes the information from the user input. I also have some html validation added in as well as the validation for the php contact form. Thanks again for all the help
  2. In Topic: Problem with Contact Form

    Posted 10 Feb 2016

    Ok so I added some validation code to my php file but I am unsure if I did it right or not. It doesn't seem to work so here I am again seeing what I did wrong. All I want it to do is validate that the name and message is only Alphabetic and white space inputs and that the emails are limited against hackers and the telephone is only numeric inputs here is my php code

    $name = $_POST['name'];
    $tel = $_POST['tel'];
    $email = $_POST['email'];
    $message = $_POST['message'];
    $from = 'From: www.webdesignheros.com';
    $to = '[email protected]';
    $subject = 'Service Email for HeenanTech';
    $human = $_POST['human'];
    preg_match("/^[a-zA-Z]*$/", $_POST['name'], $_POST['message']);
    preg_match("/^[0-9]*$/", $_POST['tel']);
    $body = "From: $name\n Phone: $tel\n Email: $email\n Message: $message\n";
    if ($_POST['submit']) {
        if ($name != '' && $email != '') {
            if ($human == '9') {
                if (mail ($to, $subject, $body, $from)) {
                    echo '<p>Your message has been sent!</p>';
                } else {
                    echo '<p>Something went wrong, go back and try again!</p>';
            } else if ($_POST['submit'] && $human != '9') {
                echo '<p>Your answer to the anti-spam question is incorrect!</p>';
        } else {
            echo '<p>Please fill out all required feilds!</p>';
  3. In Topic: Problem with Contact Form

    Posted 9 Feb 2016

    awesome thanks again. And i will add an input validation to the php and thanks for the heads up

My Information

Member Title:
D.I.C Head
Age Unknown
Birthday Unknown

Contact Information

Click here to e-mail me


heenan0420 hasn't added any friends yet.


heenan0420 has no profile comments yet. Why not say hello?