i have made an update form.upon selection of a particular contact his/her details appear in the fields of the update form where the user can edit the details.the code goes as follows
CODE
<input name="desigantion" type="text" value="<?echo $desig; ?>">
<input name="company" type="text" value="<?echo $comp; ?>"
where $desig and $comp contains the previously stored values
in db.now these values already appear in the form fields when user see's the form.now the user can update values.
on button click the updated details are posted to another page where there is an update query to update the details of that contact in the database
the question is that the values are send by post method and i dont understand that if a i write the following in the next page:
CODE
$des=$_POST['designation'];
$cmp=$_POST['company'];
will it give me the updated values or the old ones?becz i have to update the table based on these values!!!!
*edit*