This is a discussion on "PHP forms/security" within the PHP Forum section. This forum, and the thread "PHP forms/security are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
PHP forms/security
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
PHP forms/security
Hi all,
I don't know much about security and stuff. I just wanted to know whether I have to take any precautions in a PHP form I have written, from which the user can extract data from my SQL database. In most fields supplied by the form, users can enter digits and/or text. Do I need to check/validate anything? Any hints on how to start or any tutorial suggestions? Thanx |
|
|
|
|||
|
First off i use basic html validation such as limit a field length etc.
Then i use preg_replace to change any tags such as <input>. If its for an email address you may also want to validate the domain. |
![]() |
| Tags |
| php, formssecurity |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CMS Security | ChrisTheSoul | Web Page Design | 5 | Feb 21st, 2008 16:28 |
| php security | saltedm8 | PHP Forum | 22 | Sep 27th, 2007 09:22 |
| Security using forms | thegarrett | Classic ASP | 1 | Apr 13th, 2007 16:38 |
| Help with security | wiggles | Website Planning | 16 | Apr 9th, 2007 22:28 |