Thread: Email in php
View Single Post
Join Date: Nov 2007
Posts: 3,761
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 332
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: Email in php

 
0
  #7
Feb 29th, 2008
  1. if ($_POST['jobtype'] == $value_of_option_in_the_database) {
  2. $selected = "selected";
  3. } else {
  4. $selected = "";
  5. }
  6. ?>
  7. <select name='jobtype' style='width: 350px'>
  8. <option value='$line[4]' <?php echo $selected; ?>>$line[4]</option>
  9. <option value='Employee' <?php echo $selected; ?>>Employee</option>
  10. ........
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote