Forum Moderators: phranque
First, you need to find out if your server is configurate with Register_global OFF or ON.
But, the MUST is to always check all variables, especially if you have forms (from simple guestbook to advance GD gallery) such as an username which is usually composed of a-z, A-Z, 0-9 and the _ sign only.
It is good to always check if the variable exists, if yes, then check it is correct; if not, give it a default value.
Also, you need to use the htmlentities() function to make sure that ", ' and any other special characters are replaced by standard encoding (utf-8 or ISO) before inserting data in your database. So you should encode before doing any update/addition and decode to echo the variable.
Lastly, placing an index file (index.html) in your include files and any other folder is recommended to hide the name of your include folder
If you are having difficulties, I may post some script when I will get more time.
Tomda