Hello friends
To retain value on PHP form , when i refresh page i am using
<option value="4" <?php if ($_POST['emptyp'] == '4') { echo "selected='selected'"; }?> >1. (Helping staff)</option>
but its giving Notice: Undefined index 'emptyp'
please check the attached bmp file
please suggest me what to do to retain the values on php form for drop down
Problem with drop down box
Moderator: General Moderators
Re: Problem with drop down box
add isset function :
Code: Select all
<option value="4" <?php if (isset($_POST['emptyp']) && $_POST['emptyp'] == '4') { echo "selected='selected'"; }?> >1. (Helping staff)</option>-
om.bitsian
- Forum Commoner
- Posts: 36
- Joined: Wed Sep 09, 2009 4:13 am
Re: Problem with drop down box
thanks iamngk....its working
by mistake i have post the same problem twice
by mistake i have post the same problem twice