I am trying to embed php code in the value of the input tag. I can't seem to get the appropriate syntax down for this. Below is the code that i am tryting to use. The form and the page work if I remoive the value attribute. So if anyone out there could give me some insight on how to go about this I appreciate it.
$form .="<td align=center><input type=\"text\" name=\"barcode\" value=" . if(isset($_POST['barcode'])){ echo $_POST['barcode'];} . "></input></td>";