470,849 Members | 1,084 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

editable option list

hey yall,

I fill a list of option from a mysql table

$resultprod = mysql_query ("describe my_table");
while($row = mysql_fetcharray($resultprod)) {
echo ('<option value="' . $row['Field'] . '">' . $row['Field'] .
'</option>');
}
echo "</select>";
}

but I would also like the user to be able to add itīs own value if the
value he/she want to enter is not in the mysql table. how can I do
that?

thanx in advance

Pat
Jul 17 '05 #1
1 2116
ki*********@yahoo.com wrote:
hey yall,

I fill a list of option from a mysql table

$resultprod = mysql_query ("describe my_table");
while($row = mysql_fetcharray($resultprod)) {
echo ('<option value="' . $row['Field'] . '">' . $row['Field'] .
'</option>');
}
echo "</select>";
}

but I would also like the user to be able to add itīs own value if the
value he/she want to enter is not in the mysql table. how can I do
that?

thanx in advance

Pat


Use a textbox. Check in the script if it is filled and save it to db.
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Javier Gomez | last post: by
reply views Thread by Manoj Agarwal | last post: by
reply views Thread by sapo | last post: by
1 post views Thread by Joe Spears | last post: by
4 posts views Thread by biswaranjan.rath | last post: by
4 posts views Thread by Henry | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.