Refreshing

ok so i got a contact form but now its not really even validating anything just refreshing:

http://www.orangestonephotography.com/test/run/out.php

does anyone have any ideas on why this is going on?

here is my source:

http://silver163.pastebin.com/m6ba20c45

php validation.php source:

http://silver163.pastebin.com/m31ae59b6

Please help

Do some debugging. You have some php code in there that imposes some conditions before it will output something.


<?if( isset($_POST['send']) && (!validateName($_POST['name']) || !validateEmail($_POST['email']) || !validatePasswords($_POST['pass1'], $_POST['phone']) || !validateMessage($_POST['message']) ) ):?>
                                <div id="error">
                                        <ul>
                                                <?if(!validateName($_POST['name'])):?>
                                                        <li><strong>Invalid Name:</strong> We want names with more than 3 letters!</li>
                                                <?endif?>
                                                <?if(!validateEmail($_POST['email'])):?>
                                                        <li><strong>Invalid E-mail:</strong> Stop cowboy! Type a valid e-mail please :P</li>
                                                <?endif?>
                                                <?if(!validateHuman($_POST['human'])):?>
                                                        <li><strong>You Aren't a Human!</strong> Passwords doesn't match or are invalid!</li>
                                                <?endif?>
                                                <?if(!validateMessage($_POST['message'])):?>
                                                        <li><strong>Ivalid message:</strong> Type a message with at least with 10 letters</li>
                                                <?endif?>
                                        </ul>
                                </div>
                        <?elseif(isset($_POST['send'])):?>
                                <div id="error" class="valid">
                                        <ul>
                                                <li><strong>Congratulations!</strong> All fields are OK ;)</li>
                                        </ul>
                                </div>
                <?endif?>

Now, if neither of the conditions are true, then nothing will be output. Since both conditions require that certain variables exist, that would be a good place to start checking. Take a look at the contents of the $_POST array to make sure that the variables, and appropriate values are present. A handy way to look at the contents of the $_POST array is to use print_r()

Do you see your problem now?