This is a discussion on Capitalize First Letter for Create Account Fields within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; This may be the simplest contribution ever. Many of our customers were to lazy to capitalize the first letter of ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| This may be the simplest contribution ever. Many of our customers were to lazy to capitalize the first letter of the following fields : First Name Last Name City Business Name Street Address This drove me crazy, so, I fixed this for them on the fly using the ucwords() function. ------------------- Example from create_account.php To capitalize the first letter of the "first name" field: FIND : $firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']); CHANGE TO : $firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']); $firstname = ucwords($firstname); ------------ Done! Simply do that for any field you wish to capitalize for your customers. More...
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do i create a search drop down menu with multiple fields? | intensea | osCMax v2 Customization/Mods | 0 | 04-07-2007 03:25 PM |
| adding fields to PWA (purchase without account) | betagirl | osCMax v2 Customization/Mods | 0 | 01-27-2007 11:40 AM |
| Create an Account - How to Re-Order Fields ? | Lobotaman | osCMax v1.7 Discussion | 2 | 04-11-2005 11:15 AM |
| Create Account,Checkout,My Account, Language Pictures probs! | Mikey | osCommerce 2.2 Installation Help | 0 | 03-08-2004 11:20 PM |
| Extra fields in Customer Account | cralyn | osCommerce 2.2 Modification Help | 6 | 01-26-2004 09:20 AM |