I have a sign-in page where I have dropdown in which I have 20links when user save sign-in form, data is store in database and shown in dashboard where database result shown in dropdown .my question is I get full path in my dashboard but I want only option tag value .
note : actually I put full path in my sig-in page dropdown ,that's why it shows but how can I change this so I not to get full path on dashboard dropdown
DASHBOARD CODE to fetch links from database
$Email = $_POST["Email"];
$Email = $_SESSION["Email"];
$sql = mysqli _query( $conn, "SELECT schemes From user where Email='$Email'");
$row = mysqli_num_rows($sql);
while ($row = mysqli_fetch_array($sql)){
echo '<option value="'.$row['schemes'].'">'.$row['schemes'].'</option>';
}
in sign-in page it also contain dropdown please help me out from this and one thing more why when we submit data in option tag ,the value attribute shown in database