You are here: Re: Stop user access « PHP Programming Language « IT news, forums, messages
Re: Stop user access

Posted by Garry Jones on 10/11/06 21:25

"Moot" <mootmail-googlegroups@yahoo.com> skrev i meddelandet
news:1160598589.611992.313100@k70g2000cwa.googlegroups.com...

> If the check fails (ex: if the password is wrong, or they navigate
> directly to the page), then use header("location: whatever"); to
> redirect them immediately to some other page.

Yes I got that bit. But if the user goes straight to the page he jumps in
and the password entered and the password processed are identical null
values.

What I mean is in this example

$_POST['user_try'] will be empty if the user has typed in the page name of
the processing page directly. I am unsure how empty because the checking for
($_POST['user_try'] == "") was not enought to trap it, it appears there is
some kind of null that is not recognised as being "". However when I echoed
it to check there was nothing there.

I have been playing with isset but cant cant get the syntax.

if (isset($_POST['user_try'])){
lots of code goes here to kick off the page
after which then i can close the if statement
}
Header("Location: whatever.php");
exit;


.... But I am still missing something, greatfull for any help
Garry Jones
Sweden

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация