来自未出现在消息中的表单的文本需要加入名称 [英] Text from form not appearing in message need to join names

查看:61
本文介绍了来自未出现在消息中的表单的文本需要加入名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从表单发送邮件,但名称并不仅仅显示



您好,感谢您注册



Nees加入名称

 WebClient客户端=  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&\"+
< span class =code-string> from = USIS& to = + mobile +
& text = Hi + name + ,感谢您注册 ;
client.OpenRead(url);



请更正以上



谢谢



我尝试过:



查看我自己的代码并在线查看了一些代码

解决方案

用+替换查询字符串中的空格 - 空格不是任何有效URL的一部分,因此它们在Hi之后结束查询字符串

Sent messages from form however 'name' didnt appear only

Hi, Thank You for registering

Nees to Join names

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

解决方案

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".


这篇关于来自未出现在消息中的表单的文本需要加入名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆