php echo html无法正确使用post数据
好的,我有一个php页面,它向hello.php发布了一系列数据 hello php基本上只是一个回显html的回显语句 在尝试将postdata添加到hiddin输入字段时会出现问题 下面是我的hello.php代码示例php echo html无法正确使用post数据,php,html,post,echo,Php,Html,Post,Echo,好的,我有一个php页面,它向hello.php发布了一系列数据 hello php基本上只是一个回显html的回显语句 在尝试将postdata添加到hiddin输入字段时会出现问题 下面是我的hello.php代码示例 <?php echo" <form action='polly.php' method='post' required='required'> <input class='required' name='fpuser' id='fpuser' val
<?php
echo"
<form action='polly.php' method='post' required='required'>
<input class='required' name='fpuser' id='fpuser' value=\"$_POST\">
";
?>
必须将变量与回显字符串分开
<?php
echo "
<form action='polly.php' method='post' required='required'>
<input class='required' name='fpuser' id='fpuser' value=\"".$_POST['username']."\">
";
?>
没关系。“
之间的字符串用于计算php变量。
<?php
echo "
<form action='polly.php' method='post' required='required'>
<input class='required' name='fpuser' id='fpuser' value=\"".$_POST['username']."\">
";
?>