You are here: Re: Some simple security « PHP Programming Language « IT news, forums, messages
Re: Some simple security

Posted by d on 03/29/06 16:58

"Neal Middlemore" <neal.middlemoreh@tbaesystems.com> wrote in message
news:442a8c91$1_1@glkas0286.greenlnk.net...
> Hi,
>
> I want to be able to add some simple security to one of my pages,
> basically my page allows users to submit a text field which gets parsed
> into MySQL db and displayed on other pages. At the moment anyone can
> submit text which opens the page to abuse. I don't want to implement a
> user login system. I had envisaged the addition of a password entry box
> which the Submit button checks against the db before proceeding, so if any
> user has the correct password then they can submit.
>
> Having never done password stuff before, could somebody please point me in
> the right direction?

You should use the <input type="password"> form input, and POST the data
(not GET) back to the form. Check the password field with your stored
password, and you know whether the user is cool or not :)

> Also, if I have the config data to connect to the mysql db in a PHP file
> on my server, can anybody just open it?

As long as the server isn't configured to allow it to be fed directly to the
user, you'll be safe.

> Thanks
>
> Neal

dave

 

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

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