I wonder whether someone may be able to help me please.
I’ve put together a PHP table shown below that that outputs a list of uploaded files.
echo("<table style='border-collapse: collapse' class='Grid' border='0' cellspacing='0' cellpadding='2'>");
foreach($files as $mvcfile)
{
echo("<tr>");
echo("<td>");echo("<img src='phpuploader/resources/circle.png' border='0' />");echo("</td>");
echo("<td>");echo($mvcfile->FileName);echo("</td>");
//echo("<td>");echo($mvcfile->FileSize);echo("</td>");
echo("</tr>");
I’m now trying to add another line to the table incorporating a text field which holds one of my PHP variable as shown below:
echo("<td>");echo(input type="hidden" name="filename" value="<?php echo $mvcfile->FileName; ?>");echo("</td>");
I’ve had a look at several posts on this and other sites and I thought I’d understood what I needed to do, but clearly not as I’m receiving this error:
Parse error: syntax error, unexpected T_STRING in /homepages/2/d333603417/htdocs/development/formmanualstarttest.php on line 97
with line 97 being the line I’m trying to introduce.
I just wondered whether someone could perhaps have a look at this please and let me know where I’m going wrong.
Many thanks
Parse error: syntax error, unexpected T_STRING<?php ?>tags, so in yourecho inputthe additional<?php echo $mvc ...was unnecessary.htmlentitesfor safe HTML output."probably isn’t common in a filename, but it’s better to be safe than sorry.