I’ve tried using following htmlentities for a text box and I got the following undefined variable error inside the textbox. I’ve tried changing my php to <?= htmlentities [$_POST['invo_val'] ?> but still get the same message. Any idea where I have gone wrong?
<td><input type="text" id="invc_no" name="invc_no" size="15" class="colr" value="<?php htmlentities($_POST['invc_no']) ?>"></td>
and the error says : <br /><b>Notice</b>: Undefined index: invc_no in <b>E:\xampp\htdocs\ss\docs\addInvo.php</b> on line <b>394</b><br />
Try do not get data from unset post