PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
hiya
I have written this to get some input from the user as form input and send me mail, I can get input from 2 fields but can't take the input from the rest, can anyone please help me to solve the problem?
here is the php code and html code as well.
I never stated it was recommended. I simply find it helpful to use such naming conventions in order to distinguish between data types associated with a field. Also, One might feel compelled to name a variable as "name" in order to store posted values. This may cause conflicts with reserved names by relation database management systems such as MySQL.
'name' is not a reserved name in MySQL
I usually try to map input names to match field names in database tables. Creating abbreviations that are only meaningful for whoever wrote them is bad practice in my opinion
I know 'name' is not a reserved name in MySQL. But if you start off using a naming convention a lot like the one you just suggested it will save you a lot of revision work in the future.