[WeChat development] The content of the auto-reply can't use two field variables?

Source: Internet
Author: User
Sina Cloud Platform, the core code for

$answer = $answer. $small [' address '];
$CONTENTSTR = "You are querying: \ n". $keyword. "";

Where $answer is the address field of the record to be queried, the content is the URL, $keyword for the fans to send the keyword, run OK, as follows:
You are inquiring about:
Bees

(Blue content is a link to link to the URL referred to by $answer)

Now you want to change $keyword to another field in the record with the following code:
$answer = $answer. $small [' address '];
$findname = $answer. $small [' name '];
$CONTENTSTR = "You are querying: \ n". $findname. "";

Running the $answer and $findname content together as a link, the results are as follows:
You are inquiring about:
http://mp.weixin.qq.com/s?__biz=MzI1ODAxNTk1Mg==&mid=210395152&idx=1&sn= 17F6F6FD7BF7776A7572B6429652358C&SCENE=5&SRCID=NXHAHCQKVFTEO1B94RVR#RD Italian Bee

(Blue content is a link to link to the URL referred to by $answer)

I hope not to display the URL, the result is:
You are inquiring about:
Italian bees

(Blue content is a link to link to the URL referred to by $answer)

I would like to ask you large, automatic reply to the content can not use two field variables? Or is it some other reason? Thank you


Reply to discussion (solution)

After their own groping Baidu, has been resolved, the reason is that more than one variable connection, resulting in a link address error, the code should be as follows:

$answer = $small [' Address '];
$CONTENTSTR = "You are querying: \ n". $keyword. "";

And

$answer = $small [' Address '];
$findname = $small [' name '];
$CONTENTSTR = "You are querying: \ n". $findname. "";

Thank you!

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.