I am trying to develop a web application where the user enters data and retrieves it in a formatted manner in various sub applications within my site. Basically, it's a form heavy application. I use PHP, HTML and MySQL to develop it. I am hoping I can make it commercial one day. I am good enough to make the site function but As I develop it more, I want to think more about security. I also have an admin dashboard where I control and manage the main application.
So there are two applications, 2 MYSQL databases and information sharing between databases and tables. Programming language is not advanced at all (probably barely rookie level)
For Forms, before I send entered data to mysql to store, I use following;
$lname = stripslashes($_REQUEST['lname']); $lname = mysqli_real_escape_string($concfc, $lname);
Before I develop more forms, should I implement something else to increase? What other methods in general I can follow to increase security?
I use
$_GET
variables, pass variables through URL, like my question here.. There are a lot of talks about sanitizing it. I really dont know what that means, other than what I am doing for forms above.Eventually, app will host (will most likely use third party provider to host) user uploaded documents to be used (send via email, keep an order of the documents etc) within application.
Is there anything else that I can start doing to make my application more secure? I hope that my questions are not so vague as I am trying to learn "best practices", at least for my level of programming knowledge. I am aware there is a lot of information on the web but I am really not sure which one is more suitable, necessary or applicable.
Thanks