Syntax to correct typing errors on form
Hiya
Using PHP and MySQL, I am looking for the correct syntax to make sure a visitor has typed their name and address with an initial capital letter, then the rest of the address lowercase.
Finally the postcode (zip) should be uppercase.
I can correct any errors when it is DISPLAYED on screen, but what I want to do is to fix this BEFORE it is inserted into the database.
I have found endless entries on how to convert once the text is in the database but can't find anything about fixing it errors on the fly as the data is inserted into the database.
I want to export the database to a printer's mailing list so need all the addresses to be neat and tidy.
Thank you for any help!
