Gentlemen, can anyone help me with the code below? I need to put an IF before DO. I need to validate a _POST [so_server] variable. If it is Linux after the DO would put a form structure, ELSE put another form structure.
Can you help?
<?php
do {
?>
<div id="tabs-<?php echo $row_menu_servidor['host_servidor']?>">
<div id="id_solic"><div style="position: absolute; margin-left:10px; margin-top:-10px; width:100px; height: 10;"><br/>
<h4>ID Solicitação<br>
<form name="form-<?php echo $row_menu_servidor['host_servidor']?>" method="post" action="">
<input name="id_solic" id="id_solic" type="text" value="<?php echo $_POST['id_solic'];?>" size="5" readonly="readonly">
<input name="infra_basica" id="infra_basica" type="text" value="<?php echo $row_menu_servidor['host_servidor']; ?>" size="5" readonly="readonly">
<input name="so_servidor" id="so_servidor" type="text" value="<?php echo $row_menu_servidor['so_servidor']; ?>" size="5" readonly="readonly">
<br><br>
</form>
</div>
</div>
</div>
<?php
} while ($row_menu_servidor = mysql_fetch_assoc($menu_servidor));
$rows = mysql_num_rows($menu_servidor);
if($rows > 0) {
mysql_data_seek($menu_servidor, 0);
$row_menu_servidor = mysql_fetch_assoc($menu_servidor);
}
?>