Jump to content

Using ucfirst when submitting to MySQL Database


SalientAnimal

Recommended Posts

The code you have posted makes no sense.

 

You pass your values to ucfirst as an argument. eg;

 

ucfirst($_POST['fname']);

 

Having said that, why are you modifying user submitted data? And secondly, your not using user submitted data directory in your queries are you?

What everyone is getting as is that you should not modify the information before you put it in the database.  Although, you DO need to sanitize it before hand.

 

Wait until you take the information out from the database to modify its look and feel.  Otherwise, it would be like pouring milk into a cereal box, and then putting it in the cabinet so you don?t have to add milk later.  Be normal and pour the milk in afterwards.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.