I am trying to embed a raw PHP variable $nombre into the HTML, here is the PHP:
Edit <?php echo $nombre; ?> .
<form action="getfile.php" method="post" name="uploadForm" id="uploadForm"
enctype="multipart/form-data" ><br>
Complete the information below <br></br>
<table>
<tr>
<td>Nombre </td>
<td>
<input name="nombre" value="<?php=$nombre?>" type="text" id="nombre" />
</td>
</tr>
</table>
The first <?php echo $nombre; ?> shows the correct value, but inside <input> tag it prints blankstring. What am I doing wrong?
htmlspecialchars()on$nombreif it's not already been run on it.