[eluser]cinewbie81[/eluser]
Code:
<?php $this->load->view("header"); ?>
<?php echo form_open('customer/verification');?>
<div id="actionmenu">
<input type="image" name="Save" src="<?php echo base_url();?>images/save.gif" value="Save" alt="Save">
<input type="image" name="Cancel" src="<?php echo base_url();?>images/cancel.gif" value="Cancel" alt="Cancel">
</div>
<table border="0" cellpadding="0" cellspacing="0" height="100%" id="tablesetting" align="center">
<tr>
<td>Name:</td>
<td><?php echo echo form_input('CustomerName', '');; ?></td>
</tr>
<tr>
<td>Gender:</td>
<td><?php
$options = array('0' => 'Male','1' => 'Female');
echo form_dropdown('gender', 'gender', $options,'0');
?>
</td>
</tr>
</table>
<?php echo form_close();?>
<?php $this->load->view("footer"); ?>
I have a Customer View Page as shown above:
Notice that I have the following input elements on my form
a) Save Image button
b) Cancel Image button
a) 'CustomerName' input type
b) 'Gender' dropdown menu box
When I change the Gender value from 'Male' to 'Female', and press 'F5' key to refresh the page, the value for 'Gender' dropdown menu still return me 'FEMALE' on the page. I want it to be in the original state value- which is 'Male'. How can i do it ?? The same thing goes for CustomerName input type, after i press 'F5' it should return me an empty value.
ANyone ? Thanks in advance