-1

here is the code from the sender file , if i want to send the text field value (sms_name) from one html to another html , now how u can modify the code to send three test

value(sms_name,sms_number,sms_text);

html file code (sender):
      var sms_txt=get_the_value('messages');
      var sms_number=document.getElementById('recepient-number').value;
      var sms_name= document.getElementById('recepient-name').value;


// plz modify this line down to send more than one text field vlaue
      window.location.href = 'activity_log.html?sms_name=' + sms_name  ;
4

3 回答 3

0
window.location.href = 'activity_log.html?sms_name=' + sms_name + '&sms_number=' + sms_number + '&sms_txt=' + sms_txt;
于 2013-07-18T09:52:40.637 回答
0

这是你要找的吗?

window.location.href = 'activity_log.html?sms_name=' + sms_name +'&sms_number'+sms_number+'&sms_txt'+sms_txt;
于 2013-07-18T09:52:55.130 回答
0

尝试这样做:

window.location.href = 'activity_log.html?sms_name=' + sms_name+'&sms_txt='+sms_txt+'&sms_number='+sms_number';

于 2013-07-18T10:03:59.780 回答