You are here: Re: Problem with simple PHP login Script « All PHP « IT news, forums, messages
Re: Problem with simple PHP login Script

Posted by Ehsan on 03/24/06 08:02

Hi,

You will have to use trim() over the $username and $password, because
the values fetched from the txt file is having a space either before or
after the string. So you will have to get rid of those.

if ( ( trim($username) == $_POST['txtUsername'] ) &&
( trim($password) == $_POST['txtPassword'] ) ) {

Thanks,

Ehsan
http://ehsan.bdwebwork.com

 

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

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