I am working with a group that wants to take donations online through their web site. Their web hosting account includes access to SSL. It doesn't include PGP or some other way to do secure e-mail transmission. They don't have the funds to set up an online merchant account for this; instead they will manually process all credit card donations.
Right now we are setting up a PHP-based donation form and plan to call the form through SSL (https). We are looking at two ways to store this data -- text file vs. MySQL database -- and I'm wondering if anyone has info about wh/ would be the better way to go.
(1) All input in the form gets saved to a text (.txt) file that resides in a password-protected (.htaccess) folder on the web server. When someone makes a donation the PHP script includes an e-mail trigger so that a message is automatically sent to a staff member letting them know they need to deal. We can build in a "delete" tool so that once the data has been collected overwiting the text file with a clean one is a simple one-click process.
(2) We have MySQL dbase access with this account -- is it safer to use SSL to transmit form data to the database for storage purposes? We would build in different views of the data, as required, and staff could then view/collect the sensitive info from a browser via https. We can build in deletion capabilities so that sensitive data is easy to remove.
Which would be the more secure way to go? Where are the holes in either of these? Is there a PHP encryption trick that we're missing?
Any help is greatly appreciated!