I am building an application which creates a SMS from the from the user fills and sends it to the intended person. I want to create a URL to a webpage with parameters collected from the form.
For example: The form has fields A and B. When the user1 clicks 'Send' button, it should generate a URL to a page www.mypage.com/collect.html?field1=A&field2=B. I want to insert this URL into the SMS that is sent so that when user2 clicks on the URL he is redirected to the URL and I can pre-populate the form with the parameters in the URL.
I can generate the URL from the user inputs but how do I insert this URL in the SMS I am sending out? I have a String that I am sending as a SMS. For e.g. “Please click here” and I want to encode ‘here’ with the URL.
Most likely not going to work. I’ve tried simple HTML (e.g.
<a href="google.com">Google</a>) out of interest, but it won’t get parsed correctly.A (not so beautiful) solution would be to send the plain URL or to use an URL shortener service.