Declare multiple var and send to PHP

Declare multiple var and send to PHP

Im trying to declare multiple var's and then sent them to php, i managed with only one 'var' but not when adding more
This below works

  1. $(document).ready(function(){      
  2. $(".temp").mouseover(function(){         
  3.  $.post('write.php', 'valTemp=' + $('#temp').val(),

  4. function (response) {
  5.       alert( $('#temp').val());
  6.    });
  7. return false;    
  8. });  
  9. });
What i want to do is


  1. $(".temp").mouseover(function(){         
  2. var valTemp = $('#temp').val()
  3.       var valWind = $('#wind).val()
  4.       var valSun = $('#sun).val()
  5. $.post('write.php', 'valTemp', valWind, valSun,

  6. function (response) {
  7.       alert( $('valTemp'), $('valWind'),);
  8.    });
  9. return false;    
  10. });  
  11. });