0
Code is this:
Page edits:
<?php
$id = "";
$DsStatus = "";
if(!empty($_GET['id'])){
$id = $_GET['id'];
$results = $controller->listar($id);
$DsStatus = $results->getst();
}
<form action="../controller/progPrecontrole.php" method="POST" onsubmit="return valid();">
<input type="text" id="st" name="st" value="<?php echo $DsStatus; ?>"/>
</form>
?>
Table page:
<?php
foreach ($controller->ListaPorTipoB() as $objProg) {
?>
<tr>
<td><p><?php echo $objProg->getst(); ?></p></td>
<td><a class="color" href="edita.php?id=<?php echo $objProg->getid();?>"><p>Alterar</p></a></td>
</tr>
<?php
}
?>
I need that if the value of $DsStatus
is an x value in the input, in the status column in the table page special characters like this appear: . For example, if in the input is 10 shows in the table column , if is 11 shows and so will.
Please avoid long discussions in the comments; your talk was moved to the chat
– Maniero