Update editdata.php

<input name="txtid" type="hidden" value="<?php echo $name; ?>" />