如何在$ .getJSON中串联?

I have a web app that include some Ajax inside. I need to pass 2 variables to external PHP How do I add another concatenation for my second value ?

Here is my code

$.getJSON('myphp.php?value1=" . $rowData['value1'] .

I need to pass to the PHP file also 'value2' But I can't figure out how to concatenate right the second value and what is the right syntax

Thank in advance

Abraham

$.getJSON( "test.js", { value1: $rowData['value1'], value2: $rowData['value2'] } )

A much better way to do the same:

var val1 = <?php echo $rowData['value1']; ?>;
var val2 = <?php echo $rowData['value2']; ?>;
var val3 = <?php echo $rowData['value3']; ?>;

$.getJSON('myphp.php', {value1: val1, value2: val2, value3: val3}, function(data){

 // Success Callback
});