How to implement this php code
I was just given a solution to a problem I have but I'm not really sure how to actually implement it.

    $(function(){
        $.get('file1.php', function(data){
           $('#dropdown1').html( data ); 
        });
    
        // on change of dropdown1 populate dropdown2 with the respective data 
        $('#dropdown1').change(function(){
            $.get('file2.php',{ make: $(this).val() }, function(data){
                $(this).html( data ); 
            }); 
        }); 
    }); 

Here is the question I asked
http://stackoverflow.com/questions/7787829/ajax-form-2-drop-downs-with-external-source <br> I'm still unsure how to format file1 and file2.php as well as how to implement it into my form.
I really appreciate the advice/help . Thanks!
How to implement this php code
===

I was just given a solution to a problem I have but I'm not really sure how to actually implement it.

    $(function(){
        $.get('file1.php', function(data){
           $('#dropdown1').html( data ); 
        });
    
        // on change of dropdown1 populate dropdown2 with the respective data 
        $('#dropdown1').change(function(){
            $.get('file2.php',{ make: $(this).val() }, function(data){
                $(this).html( data ); 
            }); 
        }); 
    }); 

Here is the question I asked
http://stackoverflow.com/questions/7787829/ajax-form-2-drop-downs-with-external-source <br> I'm still unsure how to format file1 and file2.php as well as how to implement it into my form.
I really appreciate the advice/help . Thanks!