This is a discussion on "Making the form Secure & Restricting Chars" within the PHP Forum section. This forum, and the thread "Making the form Secure & Restricting Chars are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Making the form Secure & Restricting Chars
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Making the form Secure & Restricting Chars
I need to know how i can make my form input box secure, because I've heard of entering something which will then delette your site
I also need to know how i can restrict characters like @-)("£$%^&*( etc etc. I only want letters & numbers to be entered. Thanks. |
|
|
|
#2
|
|||
|
|||
|
Re: Making the form Secure & Restricting Chars
Try this - PHP Mail Form: Secure and Protected
|
|
#3
|
|||
|
|||
|
Re: Making the form Secure & Restricting Chars
That seems far to complex for me to just jump into, got anything a little more less complex and just what i need? I think i just need strip splashes for one.
|
|
#4
|
|||
|
|||
|
Re: Making the form Secure & Restricting Chars
stripslashes is one of the things you do not want to just add - PHP adds extra slashes to protect the casual user against injection attacks, and you should ONLY use striplashes once you understand how it works.
If you want to check whether a field ONLY contains letters and numbers, you can write:
|
![]() |
| Tags |
| restricting, secure |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| restricting access to folders on server | sudhakararaog | PHP Forum | 3 | Mar 30th, 2008 18:48 |
| PHP mail() --> Making a Form / Validating Input / Sending an email | c010depunkk | PHP Forum | 4 | Jan 17th, 2008 06:35 |
| Passwords - restricting access to the webpage or parts of it | pengyou | Starting Out | 5 | May 24th, 2007 11:38 |
| Secure E-mail form troubles | BGarner | PHP Forum | 2 | Mar 15th, 2007 20:22 |
| Making a form for newsletter subscription | jamesbowers | Web Page Design | 16 | Jan 4th, 2007 09:36 |