|
-
Feb 7th, 2007, 07:07 PM
#1
Thread Starter
Frenzied Member
get data make selection option
Hey guys, I am stuck with this logic. Say I have a form
Code:
<select name="Birth_Month">
<option value="">(Month)</option>
<option value="01">Jan</option>
<option value="02">Feb</option>
<option value="03">Mar</option>
<option value="04">Apr</option>
<option value="05">May</option>
<option value="06">Jun</option>
<option value="07">Jul</option>The user selected one field, and that field's value is stored in the mysql database. My question is, if the user wants to come back to the page, and select "Edit". .. Then he/she should get a form that his Birth_month's value has already been selected for him. I did the select * query
PHP Code:
<?php echo "value=\"$row[6]\"";?>>
The $row[6] is the row that contain that user's month info. But I don't know how can I use that row to insert into those option box?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|