|
Posted by Ken Robinson on 02/08/07 16:04
"wallster" <weldingwalt@hotmail.com> wrote in part:
> Here's the code i'm using:
> ----------------------------------------------------------------------
> ----------------------------------- <?php
> if(!$visitormail == "" && (!strstr($visitormail,"@") || !
> strstr($visitormail,".")))
> {
> echo "<h2>Go Back - Enter valid e-mail</h2>\n";
This could be a register_globals problem. It looks like your code was
written assuming that register_globals is enabled. If it was changed to
be disabled, then you're code would break.
If you create, upload, and run a script consisting of the lines:
<?php
phpinfo();
?>
What does it say about register_globals?
Ken
Navigation:
[Reply to this message]
|