Nightchild
07-24-2007, 01:11 PM
When I pass a variable from one page to another using something like
"www.mysite.com/page2.php?order=user_id&dir=asc"
This is in plain sight in the address bar. In the example above I am passing the name of one of my DB fields.
Should I be concerned about users seeing the names of my DB fields?
Without using a form, how would I pass these same variables via a POST (if possible)?
What types of information/variables (aside from personal info, passwords, credit card#'s etc...) should be passed using sessions?
Being new to PHP I am looking for general "best practices". I'd rather ask at the start than have to unlearn bad habbits later.
Thanks
"www.mysite.com/page2.php?order=user_id&dir=asc"
This is in plain sight in the address bar. In the example above I am passing the name of one of my DB fields.
Should I be concerned about users seeing the names of my DB fields?
Without using a form, how would I pass these same variables via a POST (if possible)?
What types of information/variables (aside from personal info, passwords, credit card#'s etc...) should be passed using sessions?
Being new to PHP I am looking for general "best practices". I'd rather ask at the start than have to unlearn bad habbits later.
Thanks