help required
Posted: Mon Dec 29, 2003 12:28 am
I need the form to auntomatically display whatever info is obtained from the database for me to edit......
I have tried but i still face problem.... can someone help me check??
$dbvalue= {$row['country']};
<select name="cnty">
<OPTION VALUE="">None
<OPTION VALUE="Afghanistan" <?php if (isset($dbvalue) && $dbvalue == "Afghanistan") echo 'selected="selected"'; ?>>Afghanistan
<OPTION VALUE="Albania" <?php if (isset($dbvalue) && $dbvalue == "Albania") echo 'selected="selected"'; ?>>Albania
Yah and one more problem i face.... why is it that when my edit form obtain info from the database it omits everything after a space??
eg name in database : Johnny Lim
display in form : Johnny
I have tried but i still face problem.... can someone help me check??
$dbvalue= {$row['country']};
<select name="cnty">
<OPTION VALUE="">None
<OPTION VALUE="Afghanistan" <?php if (isset($dbvalue) && $dbvalue == "Afghanistan") echo 'selected="selected"'; ?>>Afghanistan
<OPTION VALUE="Albania" <?php if (isset($dbvalue) && $dbvalue == "Albania") echo 'selected="selected"'; ?>>Albania
Yah and one more problem i face.... why is it that when my edit form obtain info from the database it omits everything after a space??
eg name in database : Johnny Lim
display in form : Johnny