Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Sent messages from form however 'name' didnt appear only

Hi, Thank You for registering

Nees to Join names
C#
WebClient client = new WebClient();
string name, mobile;

name   = txt_Zfname.Text+' '+ txt_Zlname.Text;
mobile = txt_Mobil.Text;
string url = "http://tintira.com:3002/cgi-bin/sendsms?password=niiamuh&user=fredquaye&from=USIS&"+
        "from=USIS&to=" + mobile +
        "&text=Hi " + name + ", Thank You for registering";
client.OpenRead(url);

Please correct the above

Thanks

What I have tried:

Checked my own codes and reviewed some codes online
Posted
Updated 24-Sep-16 23:07pm
v4
Comments
Karthik_Mahalingam 25-Sep-16 6:40am    
try hardcoding the values and check

1 solution

Replace the spaces in your query string with "+" - spaces aren't part of any valid URL, so they end your query string after the "Hi".
 
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