Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <select class="form-control" name="theloai">
- <?php
- $sel = $row['theloai'];
- ?>
- <option <?php if(!empty($sel) && $sel == 'Toy'){echo 'selected';}?> value="Toy">Toy</option>
- <option <?php if(!empty($sel) && $sel == 'Super Hero'){echo 'selected';}?> value="Super Hero">Super Hero</option>
- <option <?php if(!empty($sel) && $sel == 'Baby'){echo 'selected';}?> value="Baby">Baby</option>
- </select>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement