I have the variable:
$myvar = \'myarchive.pdf\';
How can I embedd it to this:
echo(\'
-
You are not appending the variable to the string properly. Also you have to enclose nextpage.php?file=variable within quotes. But you are closing it before the variable name.
<a href="nextpage.php?file=".'$myvar'.>
^
So try with
echo('<tr> <td> <a href="nextpage.php?file='.$myvar.'"> download now </a> </td> </tr>');
讨论(0)
-
this should work. re-add your brackets if you must
echo '<tr><td><a href="nextpage.php?file='.$myvar.'">download now</a></td></tr>';
讨论(0)
-
try this
echo('<tr> <td> <a href="nextpage.php?file='.$myvar.'> download now </a> </td> </tr>');
讨论(0)
- 热议问题