php标签不起作用。 php标签<php和<?有什么区别? [关闭]

First code is fine but textfield give back all php tag

<td><?php print($code_verification);?>
    <input type="text" name="packaging_code" id="packaging_code" value="<?=$code_verification?>" />

Change:

value="<?=$code_verification?>"

to:

value="<?php echo $code_verification; ?>"

The first line would work if your server had short_open_tags enabled.

your first code will work if you enable short tags.otherwise you can try below code

  <input type="text" name="packaging_code" id="packaging_code" value="<?php echo $code_verification; ?>" />