I cant get any value when the code is run , please help
HTML Part :
<form method="post">
<select name="rebuild">
<?php while($lo = mysqli_fetch_assoc($resultt)) { ?>
<option value="<?php echo $lo["company_name"]; ?>">
<?php echo $lo["company_name"]; ?>
</option>
<?php } ?>
</select>
</form>
PHP Part:
if (isset($_POST['rebuild'])) {
$re = $_POST['rebuild'];
}
else {
$re = " ";
}
echo $re;