SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2007
    Location
    London, United Kingdom
    Posts
    102
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP form input question

    Hi

    I have several select input form fields which i need their options to be linked to each other, as in if selecting an option once in one of them, that option would no longer exist in any of the others.

    Does anyone know how to do that using PHP code or javascript? It would be better using PHP if possible since it is geared for viewing on mobile phones and not all phones have javascript support.

    Many Thanks

    Mark Stille

  2. #2
    SitePoint Evangelist Andrewaclt's Avatar
    Join Date
    Dec 2003
    Location
    Raleigh, NC
    Posts
    535
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can't be done in php unless you want the user to have to click submit after each option, or you use a little bit of javascript. And if you are going to use a little bit of javascript, might as well do the whole thing in javascript to start with.


Bookmarks

Posting Permissions

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