chain select only by using php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kkshansid
    New Member
    • Oct 2008
    • 232

    chain select only by using php

    i have a table containing states and districts i want to make chain select only by using php without any java script but i m very confused how to pass variable on the same page that is as soon as user select particular state its districts get loaded from database to the registration form
  • zorgi
    Recognized Expert Contributor
    • Mar 2008
    • 431

    #2
    Once page is loaded you can not use php any more so to achieve this without page reloads you would have to use some sort of javascripting or AJAX if you want it to be database driven.

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      as zorgi mentioned, "chain selecting" only works with JavaScript (unless you want to reload the page each time)

      Comment

      • kkshansid
        New Member
        • Oct 2008
        • 232

        #4
        what can i do if user has javascript disabled

        Comment

        • Dormilich
          Recognized Expert Expert
          • Aug 2008
          • 8694

          #5
          program a fallback using reloads would be unobtrusive. telling the user to enable JS would be easiest.

          Comment

          • zorgi
            Recognized Expert Contributor
            • Mar 2008
            • 431

            #6
            That is really always a question :)

            I guess you can politely inform your users that they have to have javascript enabled to fully enjoy the benefits of your system and at the same time you can provide sort of php cahin forms (in case they insist to have javascript disabled) with loads of reloading.

            Comment

            • zorgi
              Recognized Expert Contributor
              • Mar 2008
              • 431

              #7
              Oups, Dorm already here. We said the same.

              Comment

              • Dormilich
                Recognized Expert Expert
                • Aug 2008
                • 8694

                #8
                well, some things are obvious

                Comment

                Working...