/var/www/vhosts/sivana.com.br/httpdocs/opc.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php header("Content-Type: text/html; charset=ISO-8859-1",true?>
<?
include_once("_private/conectar.php");
if (isset(
$_POST['tecido1'])){
    
$codigo $_POST['tecido1'];
$dp mysql_query ("select * from itens_simulacao where id_plano = '$codigo'") ;
while (
$dep mysql_fetch_array($dp)) {
?>
<label><?= $dep['texto'?></label>
<input value="<?= $dep['texto'?>" type="hidden" id="dpe[]" name="dpe[]" />
<input type="text" id="dp[]" name="dp[]" />
<div class="espaco2"></div>
<? } } ?>
<?
if (isset($_POST['tecido'])){
?>
<select name="cod_cidades" id="cod_cidades" class="form-control">
<?
$codigo 
$_POST['tecido'];
$dp mysql_query ("select * from cidades where estados_cod_estados = '$codigo'") ;
while (
$dep mysql_fetch_array($dp)) {
?>

<option value="<?= $dep['nome'?>"><?= $dep['nome'?></option>

<? ?> 
</select>
<? ?>