Please help JS | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please help JS

$result = $CI->User_m->loadAUserById($saleInfo['sale_rep']); //echo '<pre>'; print_r($result->Email); die(); $contract_rate = ""; if(!empty($client['contract_rate'])){ $contract_rate = $client['contract_rate']; } $body = $result->UserFirst.'!<br>'.'You have an appointment with <br>'. $client['CLFirstName'].' '. $client['CLLastName'].'<br>'. $client['CLPhone'].'<br><br>'.'Appointment Date :<br>'.date("Y/m/d h:i a",strtotime($client['AppointmentDate'])).'<br><br>'.'At<br><br>'.$saleInfo['sale_address'].'<br>'. $saleInfo['sale_city'].' '.$saleInfo['sale_state'].' '.$saleInfo['sale_zip']. '<br><br>'.'Client Number will be '.$saleInfo['client_id'].'<br><br>'. '<br><br>'.'Contract Rate '.$contract_rate.'<br><br>'. $notes.'<br>'.'<br><br>'; send_mail($result->Email, 'Appointment!', $body); ABOVE LINES ARE FOR EMAIL BELOW IS THE JAVASCRIPT I JUST WANT TO ADD THE REFERRAL TO THE EMAIL FUNCTION HOW DO I DO IT ?? if(clientId){ $("#client_id").val(clientId); $.ajax({ url: "<?php echo site_url('admin/administratorclients/getSalesInfoByClientId') ?>", method: "POST", data: 'id=' + clientId, dataType: "json", success: function(d) { //console.log(clientId); console.log(d); var _type = d['cust_info'].ClientType; $("#clType").val(_type); $("#firstName").val(d['cust_info'].CLFirstName); $("#lastName").val(d['cust_info'].CLLastName); $("#phone").val(d['cust_info'].CLPhone); $("#saleAddress").val(d['salesInfo'].sale_address); $("#saleCity").val(d['salesInfo'].sale_city); $("#saleZip").val(d['salesInfo'].sale_zip); $("#saleState").val(d['salesInfo'].sale_state); $("#statesClcom").val(d['salesInfo'].sale_state); $("#appointmentRef").val(d['cust_info'].ReferralSource); $

24th May 2020, 7:26 PM
Mustarin Muhammad Samin
Mustarin Muhammad Samin - avatar
2 Answers
+ 1
noone read this. write your code in codes section, and then ask question with linking to tour source code
24th May 2020, 8:39 PM
george
george - avatar
0
can you help me george?
24th May 2020, 8:40 PM
Mustarin Muhammad Samin
Mustarin Muhammad Samin - avatar