嗨,我想知道如何将数据传递到输入类型字段;我只使用 $_POST 方法,而且我没有先使用数据库。请帮忙。
表单.php
<form action="booking.php" method="post">
<p>
I want to be pick up at:
</p>
<p>
<input placeholder="Enter Address, Airport, Landmark" type="text" name="pickupplace" id="pickupplace" autocomplete="off" tabindex="1" style="width: 260px;"/>
</p>
<p>
drop off at
</p>
<p>
<input placeholder="Enter Address, Airport, Landmark" type="text" name="dropoff" id="dropoff" autocomplete="off" tabindex="2" style="width: 260px;" />
</p>
</form>
在 booking.php
<div>
<p>From</p>
<p>
<p>
<?php
if(isset($_POST['pickupplace']) == NULL){
echo "-";
}
else{
echo $_POST['pickupplace'];
}
?></p>
</div>
在edit_ride.php
<div>
<p>From</p>
<p>
<input type="text" name="pickupplace" placeholder="Enter Address, Airport, Landmark"/>
</p>
</div>
我想将数据传递到输入类型的edit_ride.php中,请帮助,