Advanced Search

Results 1 to 2 of 2

Thread: multiple choice form with combobox

  1. #1
    Join Date
    Apr 2012
    Posts
    19
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Question multiple choice form with combobox

    hello guys
    reffering to this thread :
    http://www.dynamicdrive.com/forums/s...using-combobox

    i tried to make an else if that contain 3 item : s1 ,s2, and s3 ..
    i want to make a redirection to www.xxxxxxx.com if :
    anything from "s1" is selected, and for s2 and s3 there is some specefic items ..
    exmple
    if (url=='Anything872'){
    goto='http://www.dynamicdrive.com/forums/showthread.php?t=68574';
    }

    anything = s1
    8 = s2
    72 = s3

    is this possible ? i'v tried many tutorials but without any success. if someone could help me through this i'll be grateful !
    thank you Guys
    and thank you dynamicdrive !!
    Last edited by djr33; 09-20-2012 at 03:44 AM. Reason: fix hard-to-read formatting

  2. #2
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    47
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    Please use [code] tags around your code.

    If I am reading this correctly, if multiple cases are true, do something? Is that right? If so, just use && (meaning and) in the if statements, ie:
    Code:
    if(something && something else){
    do something
    }
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

Similar Threads

  1. How to create multiple choice form using combobox
    By the cute in forum Looking for such a script or service
    Replies: 8
    Last Post: 05-03-2012, 07:23 PM
  2. Replies: 3
    Last Post: 05-14-2008, 10:54 AM
  3. Simple Multiple Choice Quiz
    By nicklambuk in forum Submit a DHTML or CSS code
    Replies: 5
    Last Post: 04-13-2007, 11:38 PM
  4. Replies: 2
    Last Post: 10-24-2006, 08:42 PM
  5. Multiple Choice Scrollbox URL Launcher
    By julmado in forum HTML
    Replies: 4
    Last Post: 09-19-2005, 11:28 PM

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
  •