Have an account? Sign in
Login  Register  Facebook
car year make model
I am new to php and my sql so please bear with me. I am using a program php runner.
I have 3 fields \'year | make | model\' that need to be drop down lists dependent on the prior selection. for instance if they chose 200 toyota there wont be a tercel as a choice be cause it wasn\'t made. i have a csv file that has all the correct data. what i need to know is what tables and what fields to create. and how to set up the link field so make only shows makes for the year chosen and model shows only those for the chosen year and make
thanks!
Started: September 17, 2011 Latest Activity: September 17, 2011 php mysql csv
1 Answer
You need something like this:
$(\'.make\').change(function() {
  var auto = $(\'.make\').val();
  $.ajax({
  url: \'csvload.php?auto=\'+auto,
  success: function(data) {
    $(\'.model\').html(data);
  }
});
});

Posted: MacOS
In: September 17, 2011

Your Answer

xDo you want to answer this question? Please login or create an account to post your answer