Jump to content

php security in forms


fixxxer

Recommended Posts

hi,

Ive now finsihed my first site and ive turned my attention to security, im corcerned i have a lot of forms and i use FCKeditor which creates html output.

My concern  are that in these forms can somone execute a php instruction that cause me problems. how do i prevent a malicious user doning damage to my site with a php instruction.

Also what damage could somone do with in a text box.

thanks for any help that can be offered.
Link to comment
Share on other sites

thanks for replying.

i think got my question wrong. sorry.

im aware of what the post data comes out like it was more a question in general about security for example ive got a text area on my form, how susceptable am i to an attack and what information could someone get from my site if they had an text area to type into.

i was also wonddering if theres a way to filer out a statement such as <?php //code ?>.

im not sure if im being paranoid about security buot just want to protect my site in the other forms im fine i use strip_tags on all my one line text inputs just not sure what to do with textarea and how to make it safe while still allow html also can javascript be entered into one of those boxes.
any help again would be appreciated
Link to comment
Share on other sites

thanks for that, they are exactly what im looking, hate to be a pain but just something im wondering, if i didn''t use one of those functions (im am going to. lol) but what would a person be able to do on my site, would they be able to gain access to sensitive information etc.. or could they only do pretty harmless things.

this is just to satisfy my curiousity. again thanks for help.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.