Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您好这里有一个问题我如何在 php 中传递字符串名称?这是我的代码
我想使用$_GET或将数据传递给输入类型$_POST
$_GET
$_POST
if(isset($_POST['pickup']) == NULL){ echo "-"; } else{ echo $_POST['pickup']; }
我想将数据传递给输入类型我将如何获得?
我想这就是你要找的:
<input type='text' name='pickup' value='<?=$_POST['pickup'];?>'>
尝试这个,
if(isset($_POST['pickup']) == NULL){ $input = "-"; } else{ $input = $_POST['pickup']; } <input type='text' name='pickup' value='<? echo $input;?>'>