Hi,
I get an error on this:
I think is because of the space inPHP Code:<select name="tenancy" id="tenancy">
<option value="" selected>Select</option>
<option <?php echo $tenancy==Own Home ? 'selected' : ''?> value="Own Home">Own Home</option>
<option <?php echo $tenancy==Rent ? 'selected' : ''?> value="Rent">Rent</option>
<option <?php echo $tenancy==board ? 'selected' : ''?> value="Board">Board</option>
</select>
<option <?php echo $tenancy==Own Home
How should it be so it posts it as Own Home .. with the space but still shows selected if form reloads?
Cheers







Bookmarks