I have a Registration / Search Form and now I'm adding the option to edit the fields. For the clerk not to get confused, I wanted to set the placeholder with a PHP variable, via echo
. Is it possible to do this?
<div class="inputs">
<?php if ($id != '') { ?>
<input type="hidden" name="id" value="<?php echo $id; ?>" />ID: <?php echo $id; ?>
<?php } ?>
<?php echo $cliente; ?>
<input type="text" name="cliente" maxlength="50" placeholder="<?php echo $cliente; ?>" value="<?php echo $cliente; ?>"/><br/>
<input type="text" name="produto" maxlength="25" placeholder="PRODUTO" value="<?php echo $produto; ?>"/><br>
<input type="text" name="solicitante" maxlength="50" placeholder="SOLICITANTE" value="<?php echo $solicitante; ?>"/><br/>
<input type="text" name="status" maxlength="25" placeholder="STATUS" value="<?php echo $status; ?>"/><br/>
<input type="text" name="incluiu" maxlength="25" placeholder="INCLUIU" value="<?php echo $incluiu; ?>"/><br/>
<input id="submit" class="button_text" type="submit" name="submit" value="Cadastrar" />
</div>