Hi,
I am coding an edit form and I trying to get my option box to display the
current contents of the field. The contents have been read from the db and put in the
$N_recep var but the option box always shows 0. Is this normal or is there another way
to get the variables contents to show.
The reason is - if there is no change to this field I don't want it to
require re-inputting , but at present if the client dosn't re-input then the
program will set it at zero!
This is the code:
<td class = "cl_props_add_td2" >Receptions: </td>
<td class = "cl_props_add_td2" ><select name="x_recep" value = "<?php echo $N_recep ?>">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select></td>
The same is true for my pix files - the existing path which is
held in the N_pix1 var. does not show either - code below:
<div id='Props_add2a' style='position:absolute; left:30px; top:630px' >
<table class = "cl_props_add3" CELLPADDING="1" BORDER="0" >
<input type="hidden" name ="MAX FILE SIZE" value="500000">
<tr><td> <br></td></tr>
<tr><td class = "cl_props_add_td3" >Pix 1: </td>
<td>
<input type="file" id="x_pix1" size="50" onchange="changeSrc1(this.value)" value = "<?php echo $N_pix1 ?>">
</td>
...
Thanks for any help.
Dave.