Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Naming form fields in a web page

How do you name your field names in a web page without revealing the structure of your database tables?

like image 367
giancarlo Avatar asked Dec 11 '09 03:12

giancarlo


1 Answers

Just name them something else in the HTML, and manually map between the database field names and the HTML field names in your PHP code.

But really, if you're using prepared statements and performing proper authorization and error checking, it shouldn't matter if people know the table field names.

like image 173
Kaleb Brasee Avatar answered Oct 07 '22 11:10

Kaleb Brasee