Hi have a problem here how can i pass the string name in php? here's my code
i want to pass the data to the input type using $_GET
or $_POST
if(isset($_POST['pickup']) == NULL){
echo "-";
}
else{
echo $_POST['pickup'];
}
i want to pass the data into the input type how will i get?
I think this is what you're looking for:
<input type='text' name='pickup' value='<?=$_POST['pickup'];?>'>
Try this,
if(isset($_POST['pickup']) == NULL){
$input = "-";
}
else{
$input = $_POST['pickup'];
}
<input type='text' name='pickup' value='<? echo $input;?>'>