Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/string/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在php中连接从表单$\u Post检索到的字符串_Php_String_Forms_Post_Concatenation - Fatal编程技术网

在php中连接从表单$\u Post检索到的字符串

在php中连接从表单$\u Post检索到的字符串,php,string,forms,post,concatenation,Php,String,Forms,Post,Concatenation,我正在通过HTML表单发布一个字符串,代码如下: <html> <body> <form name="form" enctype="multipart/form-data" action="test.php" method="post"> <input name="message" type="text" value=""><br/><br/> <input typ

我正在通过HTML表单发布一个字符串,代码如下:

<html>
<body>
<form name="form" enctype="multipart/form-data" action="test.php" method="post">
         <input name="message" 
         type="text" value=""><br/><br/>
        <input type="submit" value="Upload"/><br/>
         </form>
         </body>
         </html>




test.php的代码如下所示:

   <?php
   $string1 = '$_POST["message"]';
   $og_url = "http://thepropagator.com/facebook/testapp/issue.php?name=".$string1;
echo $og_url;
   ?>


我遇到的问题是,发布的字符串“$string1”似乎没有显示在URL的末尾http://thepropagator.com/facebook/testapp/issue.php?name=“我正试图将其与之连接起来。谁能解释一下我做错了什么吗?

我想你需要
$string1=$\u POST['message'],没有引号。虽然我希望你的代码会出现
http://thepropagator.com/facebook/testapp/issue.php?name=$\u POST[“message”]
url。

我想你想要
$string1=$\u POST[“message”],没有引号。虽然我希望你的代码会出现
http://thepropagator.com/facebook/testapp/issue.php?name=$\u POST[“message”]
url