Problem with data in forms
Posted: Mon Jul 25, 2005 4:32 pm
Hi,
I have a problem. I am a PHP novice, and I am trying to modify a script to better fit a client's needs.
Here is the problem. When a user creates a profile using the PHP script, all data is entered into MySQL database. When the user wants to update the info, he/she goes to a page where the previous information is pre-entered (from the database). However, some of the forms (drop down menus, etc) do not use the database information...I wonder why does that happen?
Here is a sample code I use:
I hope I am clear enough, but if not I apologize.
d11wtq | Please use
I have a problem. I am a PHP novice, and I am trying to modify a script to better fit a client's needs.
Here is the problem. When a user creates a profile using the PHP script, all data is entered into MySQL database. When the user wants to update the info, he/she goes to a page where the previous information is pre-entered (from the database). However, some of the forms (drop down menus, etc) do not use the database information...I wonder why does that happen?
Here is a sample code I use:
Code: Select all
<tr>
<td align=right>Sign:</td>
<td>
<select name="sign">
<option value=""></option>
<option value="Aries" <?=$sstatus1?>>Aries</option>
<option value="Taurus" <?=$sstatus2?>>Taurus</option>
<option value="Gemini" <?=$sstatus3?>>Gemini</option>
<option value="Cancer" <?=$sstatus4?>>Cancer</option>
<option value="Leo" <?=$sstatus5?>>Leo</option>
<option value="Virgo" <?=$sstatus6?>>Virgo</option>
<option value="Libra" <?=$sstatus7?>>Libra</option>
<option value="Scorpio" <?=$sstatus8?>>Scorpio</option>
<option value="Sagittarius" <?=$sstatus9?>>Sagittarius</option>
<option value="Capricorn" <?=$sstatus10?>>Capricorn</option>
<option value="Aquarius" <?=$sstatus11?>>Aquarius</option>
<option value="Pisces" <?=$sstatus12?>>Pisces</option>
</select>
</td>
</tr>d11wtq | Please use
Code: Select all
tags to post PHP code [/color]