CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   PHP (http://www.codingforums.com/forumdisplay.php?f=6)
-   -   Sort textbox values alphabetically (http://www.codingforums.com/showthread.php?t=284147)

helen11 12-14-2012 05:38 PM

Sort textbox values alphabetically
 
Hi I'm new to PHP and I would like to know how to sort text box values entered by a user alphabetically. Thanks in advance :)

EarthToHeaven 12-14-2012 05:58 PM

Quote:

Originally Posted by helen11 (Post 1299892)
Hi I'm new to PHP and I would like to know how to sort text box values entered by a user alphabetically. Thanks in advance :)

Hi Helen,

You might want to separate values by using any delimiter. If you want you can store them in database . Once done you can run sql query and use ASC function in the end. This will sort them alphabetically

You can either store them in array or use while loop key in values.

Tell me more about your program or logic if I can be of any help to you.


Cheers,
Nehal

helen11 12-14-2012 10:44 PM

I am creating a html form and the user has to input values into text boxes but I don't know the values the user is going to enter is it posible to create an array if I an unaware of the values?


All times are GMT +1. The time now is 09:42 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.