help In Ajax,php

Discussion in 'PHP' started by Talat50, Jan 18, 2011.

  1. #1
    Hello every one.
    i m trying to do a work here..

    i have two drop down list.
    if i select one option from one drop down list.after that one option from 2nd drop down list then form should be submitted.n both values from first drop down list and from 2nd drop down list should be posted to other page .

    i have used ajax for this.
    onChange="showUser(this.value)".
    but it submit form with current drop drown list.it does not include other drop down list.which i have selected first.

    Can anyone guide me?
     
    Talat50, Jan 18, 2011 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    EricBruggema, Jan 18, 2011 IP
  3. Talat50

    Talat50 Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for replying frnd.

    But this was not the problem which i was asking.

    look i take example from your given link.
    first i select country from drop down list.then city from 2nd drop down list.now Ajax should be called.and with this ajax call it shoul send city n country both.i dont wana ajax call on first selection.i wana ajax call with 2nd selection which take the fiirst selection also.
    n should display both country,n city.
    i dont wana submit button...:)
     
    Talat50, Jan 18, 2011 IP