Re: Function inop, but tosses no errors



..oO(Twayne)

Below is fully functional, non-functional code :^): In other words, it
works, but it doesn't do anything and darned if I can see why. None of
the 3 $email assignments result in any output. I just kept two
commented out so I could easily switch addresses for testing, thus the
"#"s. It does not kick out any errors and syntax checks valid with
tswebeditor (freebie).

[...]


---------------------
<?php
$email="mine@xxxxxxxxxx";
#$email="a@xxx";
#$email=".mine.@.domain..com";
echo "<br/>KB PFSTART"; <------- PFSTART etc are just ts names,
nothing more.
echo '<br/>using: ' . $email; <------- shows email address correctly


function validateEmail($email){
[...]
}

Maybe a stupid question, but do you actually call this function
somewhere?

echo '<br/>$output is ' . $output; # <--- $OUTPUT DOES NOT ECHO

This line should cause an E_NOTICE error, since $output is not defined
anywhere.

Micha
.