Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

290
Views
why Whatsapp web api not sending &?

I'm using this Javascript to send some information to someone on whatsapp but don't know why Javascript is not sending my message after using & I write it after company name. it is very necessary to use this in middle of the text. what should I do?

I want to use & after conpnayName so I can deliver what I want to the my client.

function whatsapp(){
  

   var compnayName = $("input[name=companyName]").val();  
   var p_number = $("input[name=p_number]").val();  


   console.log(s_no)


   window.open( "https://api.whatsapp.com/send?phone=+91"+ p_number +"&text="  +"Download Your Bill from : http://localhost/learn/php_invoice/search-bill.php?order_id="+ compnayName + "&" + "p_number" + p_number  ,'_blank');

}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You should url encode the "&" for that specific symbol. Take a look at url encoding https://www.w3schools.com/tags/ref_urlencode.asp

Try something like,

window.open( "https://api.whatsapp.com/send?phone=+91"+ p_number +"&text="  +"Download Your Bill from : http://localhost/learn/php_invoice/search-bill.php?order_id="+ compnayName + "%26" + "p_number" + p_number  ,'_blank');

Here "%26" refers to "&".

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!