Jump to content

Secure Form Processing


rbudj

Recommended Posts

I have created a form to be processed by PHP.  This form data will contain private information such as social security numbers and credit card information.  What is a good way to process this form?  I will be using a SSL.  Should I send the information by email, should I take it all and put it in a database, should I (if it is possible) have PHP create a .pdf and reference it through a link?  I just don't know what to do.  I'm open to all logical suggestions.  Thanks!
Link to comment
Share on other sites

processing this data via direct from submission is fine - its as secure as your ssl encryption - if that is satisfactory go ahead and do your magic.

MKAE SURE that the database is secure as it can be - encrypt the data using the mycrypt functions and try your best to make sure any keys are not available to the outside world. I personally would place the actual code that does the processing/encrption above the root folder of your site and simply include it the php script that accepts the data from teh form.
Link to comment
Share on other sites

I'd suggest picking up the book "Essential PHP Security"

http://www.amazon.com/Essential-PHP-Security-Chris-Shiflett/dp/059600656X/sr=8-1/qid=1167519646/ref=pd_bbs_sr_1/104-9182315-3567949?ie=UTF8&s=books

Security in layers, solid html forms, front end javascript validation, php validation, filtering/escaping, encryption, store database credentials out of public_html directory.... etc etc.
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.