0

hi,

I am facing parser error while embedding php tag in text box value.

print "<tr><td><font color=\"#0080FF\" face=\"sans-serif\" size=\"2\"><b>emp :$nbsp</b><input type='text' name='txt1' size='10' style=text-transform:uppercase maxlength='7' value="<?php echo $_POST[txt1];?> ></font></td></tr>";

please help me out.

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by jacksantho
0

You can not embed php tag inside php code, so following is the correct line

print "<tr><td><font color=\"#0080FF\" face=\"sans-serif\" size=\"2\"><b>emp nbsp</b><input type='text' name='txt1' size='10' style=text-transform:uppercase maxlength='7' value=\"{$_POST[txt1]}\" ></font></td></tr>";
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.