Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Nov 2011
    Location
    South Africa
    Posts
    59
    Thanks
    14
    Thanked 0 Times in 0 Posts

    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

  • #2
    New to the CF scene
    Join Date
    Dec 2012
    Location
    Toronto, ON
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by helen11 View Post
    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

  • #3
    New Coder
    Join Date
    Nov 2011
    Location
    South Africa
    Posts
    59
    Thanks
    14
    Thanked 0 Times in 0 Posts
    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?


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •