Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I want to use below url with but not working

<a href='https://sms.com//submitsms.jsp?user=ABCDE&key=xxxxxxxx&mobile=<span id='provider_mobile'></span>&message=Hi!, <span id='lead_name'>, Looking for <span id='lead_category'></span> at <span id='lead_location'></span>, Contact Him/Her <span id='lead_mobile'></span>(Message: <span id='lead_data'></span>)&senderid=XXXXXX&accusage=1'>send sms</a>



its printing completely good without href like below
HTML
https://sms.com//submitsms.jsp?user=ABCDE&key=xxxxxxxx&mobile=<span id="provider_mobile"></span>&message=Hi!, <span id="lead_name">, Looking for <span id="lead_category"></span> at <span id="lead_location"></span>, Contact Him/Her <span id="lead_mobile"></span>(Message: <span id="lead_data"></span>)&senderid=XXXXXX&accusage=1


please help me

What I have tried:

<pre lang="HTML">https://sms.com//submitsms.jsp?user=ABCDE&key=xxxxxxxx&mobile=<span id="provider_mobile"></span>&message=Hi!, <span id="lead_name">, Looking for <span id="lead_category"></span> at <span id="lead_location"></span>, Contact Him/Her <span id="lead_mobile"></span>(Message: <span id="lead_data"></span>)&senderid=XXXXXX&accusage=1
Posted
Updated 1-May-20 1:06am

1 solution

You need to url encode the "mobile" param.

&mobile=%3Cspan%20id%3D%22provider_mobile%22%3E ...


How you do this depends on how the html is generated

URL Encode and Decode - Online[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900