Ir para conteúdo
Fórum Script Brasil
  • 0

Atualizar Formulario


bolomaster

Pergunta

Pessoal é o seguinte eu tenho um form de inscrição e to tentando fazer o seguinte (nunca fiz nada parecido com isso por isso nem sei se estou fazendo certo)

criei um form com varios selects assim quando eu seleciono um select o outro vai atualizando e assim sucessivamente, sera que alguém pode me ajudar ? vou postar o script

abraços e muito obrigado

<table width="100%" border="0" cellspacing="0" cellpadding="5">

<tr>

<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="fonte">

<tr>

<td><img src="Imagens/Titulo_vestibular.gif" width="367" height="65"></td>

</tr>

<tr>

<td bgcolor="#000000" width="1"></td>

</tr>

<tr>

<td>&nbsp;</td>

</tr>

<tr>

<td width="100%"></td>

</tr>

<tr>

<td><div align="center"><strong>INFORMA&Ccedil;&Otilde;ES </strong></div></td>

</tr>

<tr>

<td bgcolor="#000000" width="100%"></td>

</tr>

<tr>

<td><p align="center"><strong>Siga corretamente estas instru&ccedil;&otilde;es para concluir com &ecirc;xito sua inscri&ccedil;&atilde;o</strong></p>

<p>1 - Coloque seu nome completo, endere&ccedil;o, CPF, RG, etc....</p>

<p>2 - Ap&oacute;s o preenchimento dos campos, surgir&aacute; uma tela com seus dados e no fim da pagina um banner, clique no banner para gerar o boleto. Voc&ecirc; dever&aacute; imprimir e pagar o mesmo at&eacute; a data de vencimento. </p>

<p>3 - No dia da prova, voc&ecirc; deve vir munido do comprovante de pagamento e do original de sua identidade.</p>

<p>&nbsp;</p>

</td>

</tr>

<tr>

<td width="100%">&nbsp;</td>

</tr>

<tr>

<td><div align="center"></div></td>

</tr>

<tr>

<td><div align="center">

<table width="602" border="0" cellpadding="0" cellspacing="0" bordercolor="#B5977A" class="borda32">

<tr>

<td><table width="600" border="0" align="center" cellpadding="0" cellspacing="0" background="Imagens/Fundo_vest2005.jpg">

<tr>

<td width="600"><div align="center"><img src="Imagens/topoForminscrVest2006.gif" width="600" height="80"></div></td>

</tr>

<tr>

<td>

<form name="vest1" method="post" action="enviarinscrvest.asp" onsubmit="return(validar(this))">

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="fonte">

<tr>

<td colspan="4"><div align="center"><strong><font size="3">F</font><font size="2">ormul&aacute;rio de Inscri&ccedil;&atilde;o para o 1 &ordm; Processo Seletivo de 2006</font> </strong></div></td>

</tr>

<tr>

<td bgcolor="#000000" colspan="4"></td>

</tr>

<tr>

<td colspan="2"><strong>Tipo de Prova*</strong></td>

<td colspan="2"><strong>Local de Prova </strong></td>

</tr>

<tr>

<td colspan="2"><select name="tprova" class="input2" id="tprova" >

<option>Selecione aqui</option>

<option value="Tradicional">TRADICIONAL</option>

<option value="Agendado">AGENDADO</option>

</select></td>

<%

tprova = request.form("tprova")

if tprova = "Tradicional" then

%>

<td colspan="2"><select name="lprova" class="input2" id="lprova">

<option value="paracatu">Paracatu</option>

</select></td>

</tr>

<tr>

<td colspan="2"><strong>Codigo de Ativa&ccedil;&atilde;o</strong> </td>

<td colspan="2"><strong>Nome*</strong> </td>

</tr>

<tr>

<td colspan="2"><input name="reftran" readonly="true" type="text" id="reftran" value="000000009<%=contador%>"

class="input2">

<font color="#FF0000"> (N&atilde;o altere este campo)</font> </td>

<td colspan="2"><input name="nome" type="text" class="input2" id="nome" size="40">

</td>

</tr>

<tr>

<td><strong>Endere&ccedil;o * </strong></td>

<td><div align="left"><strong>Bairro*</strong></div></td>

<td colspan="2"><strong>Cidade*</strong> </td>

</tr>

<tr>

<td><input name="endereco" type="text" class="input2" id="endereco" size="30">

</td>

<td><div align="left">

<input name="bairro" type="text" class="input2" id="bairro" size="15">

</div></td>

<td colspan="2"><input name="cidade" type="text" class="input2" id="cidade" size="40">

</td>

</tr>

<tr>

<td colspan="2"><strong>Estado*</strong> </td>

<td colspan="2"><strong>CEP*</strong> </td>

</tr>

<tr>

<td colspan="2"><input name="uf" type="text" class="input2" id="uf" size="5" maxlength="3">

</td>

<td colspan="2"><input name="cep" type="text" id="cep" class="input2"

onKeyPress="formatar(this,'00000-000')" maxlength="9">

(Ex: 99999-999) </td>

</tr>

<tr>

<td colspan="2"><strong>Telefone*</strong> </td>

<td colspan="2"><strong>Data de Nascimento*</strong> </td>

</tr>

<tr>

<td colspan="2"><input name="ddd" type="text" id="ddd" size="1" class="input2" maxlength="2">

-

<input name="telefone" type="text" class="input2" id="telefone" onKeyPress="formatar(this,'0000-0000')" size="10" maxlength="9" >

</td>

<td colspan="2"><input name="dtnasc" type="text" id="dtnasc" onKeyPress="formatar(this,'00/00/0000')"

class="input2"maxlength="10">

(Ex: 99/99/9999)</td>

</tr>

<tr>

<td colspan="2">&nbsp;</td>

<td colspan="2">&nbsp;</td>

</tr>

<tr>

<td colspan="2"><strong>Sexo*</strong> </td>

<td colspan="2"><strong>Email</strong></td>

</tr>

<tr>

<td colspan="2"><select name="sexo" id="sexo" class="input2">

<option>Masculino</option>

<option>Feminino</option>

</select>

</td>

<td colspan="2"><input name="email" type="text" class="input2" id="email" size="40">

</td>

</tr>

<tr>

<td colspan="2"><strong>CPF</strong></td>

<td colspan="2"><strong>RG*</strong> </td>

</tr>

<tr>

<td colspan="2"><input name="cpf" type="text" id="cpf" class="input2"

onKeyPress="formatar(this, '000.000.000-00')" maxlength="14">

(Ex: 999.999.999-99) </td>

<td colspan="2"><input name="rg" type="text" class="input2" id="rg" size="15">

</td>

</tr>

<tr>

<td colspan="2"><strong>Curso</strong> </td>

<td colspan="2"><strong>Possui Curso Superior?*</strong> </td>

</tr>

<tr>

<td colspan="2"><input name="curso" type="text" class="input2" id="curso" value="Direito" size="15">

</td>

<td colspan="2"><select name="pcs" id="pcs" class="input2">

<option>N&atilde;o</option>

<option>Sim Completo</option>

<option>Sim Incompleto</option>

</select>

</td>

</tr>

<tr>

<td colspan="2"><strong>Para o dia da prova necessita de algum procedimento especial? Se sim qual?</strong></td>

<td colspan="2"><strong>Para Vestibular Agendado por favor colocar o dia e o hor&aacute;rio. </strong> <!-- <strong>Vestibular Agendado:</strong> --></td>

</tr>

<tr>

<td colspan="2"><select name="sproced" class="input2" id="sproced">

<option value="sim">SIM</option>

<option value="não">N&Atilde;O</option>

</select>

- <%

sproced = request.form("sproced")

if sproced = "sim" then

%>

<input name="proced" type="text" class="input2" id="proced" size="30">

<% else %>

<input name="proced" type="text" value="não" readonly="true" class="input2" id="proced" size="30">

<% end if %>

</td>

<td colspan="2"><select name="dia" class="input2" id="dia">

<option value="08/07">08/07</option>

</select>

-

<select name="horario" class="input2" id="horario">

<option value="8:30">8:30</option>

</select></td>

</tr>

<tr>

<td colspan="4"><strong>Ano de conclus&atilde;o do Ensino M&eacute;dio* </strong></td>

</tr>

<tr>

<td colspan="4"><input name="concem" type="text" class="input2" id="concem"></td>

</tr>

<tr>

<td colspan="4"><div align="left"><font color="#FF0000"><strong>Os campos com * s&atilde;o obrigat&oacute;rios</strong></font> </div></td>

</tr>

<tr>

<td colspan="2">&nbsp;</td>

<td colspan="2">&nbsp;</td>

</tr>

<tr>

<td width="27%">&nbsp;</td>

<td width="24%"><div align="center">

<input type="submit" name="Submit" value="Enviar" class="button">

</div></td>

<td width="20%"><input type="reset" name="Submit2" value="Limpar" class="button">

</td>

<td width="29%">&nbsp;</td>

</tr>

</table>

</form>

</td>

</tr>

<tr>

<td><img src="Imagens/rodapeinscrvest2005.gif" width="600" height="79"></td>

</tr>

</table>

<div align="center"></div></td>

</tr>

</table>

</div></td>

</tr>

<tr>

<td>&nbsp;</td>

</tr>

<tr>

<td><img src="Imagens/PixelTrasp.gif" width="15" height="5"><a href="java script:history.back(-1)" class="link2">voltar...</a></td>

</tr>

<tr>

<td>&nbsp;</td>

</tr>

</table></td>

</tr>

</table>

<%

else

%>

<td colspan="2"><select name="lprova" class="input2" id="lprova">

<option value="Cristalina">Cristalina</option>

<option value="João Pinheiro">João Pinheiro</option>

<option value="Paracatu">Paracatu</option>

</select></td>

</tr>

<tr>

<td colspan="2"><strong>Codigo de Ativa&ccedil;&atilde;o</strong> </td>

<td colspan="2"><strong>Nome*</strong> </td>

</tr>

<tr>

<td colspan="2"><input name="reftran" readonly="true" type="text" id="reftran" value="000000009<%=contador%>"

class="input2">

<font color="#FF0000"> (N&atilde;o altere este campo)</font> </td>

<td colspan="2"><input name="nome" type="text" class="input2" id="nome" size="40">

</td>

</tr>

<tr>

<td><strong>Endere&ccedil;o * </strong></td>

<td><div align="left"><strong>Bairro*</strong></div></td>

<td colspan="2"><strong>Cidade*</strong> </td>

</tr>

<tr>

<td><input name="endereco" type="text" class="input2" id="endereco" size="30">

</td>

<td><div align="left">

<input name="bairro" type="text" class="input2" id="bairro" size="15">

</div></td>

<td colspan="2"><input name="cidade" type="text" class="input2" id="cidade" size="40">

</td>

</tr>

<tr>

<td colspan="2"><strong>Estado*</strong> </td>

<td colspan="2"><strong>CEP*</strong> </td>

</tr>

<tr>

<td colspan="2"><input name="uf" type="text" class="input2" id="uf" size="5" maxlength="3">

</td>

<td colspan="2"><input name="cep" type="text" id="cep" class="input2"

onKeyPress="formatar(this,'00000-000')" maxlength="9">

(Ex: 99999-999) </td>

</tr>

<tr>

<td colspan="2"><strong>Telefone*</strong> </td>

<td colspan="2"><strong>Data de Nascimento*</strong> </td>

</tr>

<tr>

<td colspan="2"><input name="ddd" type="text" id="ddd" size="1" class="input2" maxlength="2">

-

<input name="telefone" type="text" class="input2" id="telefone" onKeyPress="formatar(this,'0000-0000')" size="10" maxlength="9" >

</td>

<td colspan="2"><input name="dtnasc" type="text" id="dtnasc" onKeyPress="formatar(this,'00/00/0000')"

class="input2"maxlength="10">

(Ex: 99/99/9999)</td>

</tr>

<tr>

<td colspan="2">&nbsp;</td>

<td colspan="2">&nbsp;</td>

</tr>

<tr>

<td colspan="2"><strong>Sexo*</strong> </td>

<td colspan="2"><strong>Email</strong></td>

</tr>

<tr>

<td colspan="2"><select name="sexo" id="sexo" class="input2">

<option>Masculino</option>

<option>Feminino</option>

</select>

</td>

<td colspan="2"><input name="email" type="text" class="input2" id="email" size="40">

</td>

</tr>

<tr>

<td colspan="2"><strong>CPF</strong></td>

<td colspan="2"><strong>RG*</strong> </td>

</tr>

<tr>

<td colspan="2"><input name="cpf" type="text" id="cpf" class="input2"

onKeyPress="formatar(this, '000.000.000-00')" maxlength="14">

(Ex: 999.999.999-99) </td>

<td colspan="2"><input name="rg" type="text" class="input2" id="rg" size="15">

</td>

</tr>

<tr>

<td colspan="2"><strong>Curso</strong> </td>

<td colspan="2"><strong>Possui Curso Superior?*</strong> </td>

</tr>

<tr>

<td colspan="2"><input name="curso" type="text" class="input2" id="curso" value="Direito" size="15">

</td>

<td colspan="2"><select name="pcs" id="pcs" class="input2">

<option>N&atilde;o</option>

<option>Sim Completo</option>

<option>Sim Incompleto</option>

</select>

</td>

</tr>

<tr>

<td colspan="2"><strong>Para o dia da prova necessita de algum procedimento especial? Se sim qual?</strong></td>

<td colspan="2"><strong>Para Vestibular Agendado por favor colocar o dia e o hor&aacute;rio. </strong> <!-- <strong>Vestibular Agendado:</strong> --></td>

</tr>

<tr>

<td colspan="2"><select name="sproced" class="input2" id="sproced">

<option value="sim">SIM</option>

<option value="não">N&Atilde;O</option>

</select>

- <%

sproced = request.form("sproced")

if sproced = "sim" then

%>

<input name="proced" type="text" class="input2" id="proced" size="30">

<% else %>

<input name="proced" type="text" readonly="true" class="input2" id="proced" size="30">

<% end if %>

</td>

<td colspan="2">

<%

lprova = request.form("lprova")

select case lprova

case "Paracatu"

%>

<select name="dia" class="input2" id="dia">

<option value="05/06">05/06</option>

<option value="06/06">06/06</option>

<option value="07/06">07/06</option>

<option value="08/06">08/06</option>

<option value="09/06">09/06</option>

<option value="19/06">19/06</option>

<option value="20/06">20/06</option>

<option value="21/06">21/06</option>

<option value="22/06">22/06</option>

<option value="23/06">23/06</option>

<option value="26/06">26/06</option>

<option value="27/06">27/06</option>

<option value="28/06">28/06</option>

<option value="29/06">29/06</option>

<option value="30/06">30/06</option>

<option value="03/07">03/07</option>

<option value="04/07">04/07</option>

<option value="05/07">05/07</option>

<option value="06/07">06/07</option>

<option value="07/07">07/07</option>

<option value="10/07">10/07</option>

<option value="11/07">11/07</option>

<option value="12/07">12/07</option>

<option value="13/07">13/07</option>

<option value="14/07">14/07</option>

<option value="17/07">17/07</option>

<option value="18/07">18/07</option>

<option value="19/07">19/07</option>

<option value="20/07">20/07</option>

<option value="21/07">21/07</option>

</select>

-

<select name="horario" class="input2" id="horario">

<option value="7:00">7:00</option>

<option value="8:00">8:00</option>

<option value="9:00">9:00</option>

<option value="13:00">13:00</option>

<option value="14:00">14:00</option>

<option value="15:00">15:00</option>

<option value="16:00">16:00</option>

<option value="19:00">19:00</option>

<option value="20:00">20:00</option>

</select>

<%

case "Cristalina"

%>

<select name="dia" class="input2" id="dia">

<option value="06/06">06/06</option>

<option value="13/06">13/06</option>

<option value="20/06">20/06</option>

<option value="27/06">27/06</option>

<option value="04/07">04/07</option>

<option value="11/07">11/07</option>

<option value="18/07">18/07</option>

<option value="25/07">25/07</option>

</select>

-

<select name="horario" class="input2" id="horario">

<option value="7:00">7:00</option>

<option value="8:00">8:00</option>

<option value="9:00">9:00</option>

<option value="13:00">13:00</option>

<option value="14:00">14:00</option>

<option value="15:00">15:00</option>

<option value="16:00">16:00</option>

<option value="19:00">19:00</option>

<option value="20:00">20:00</option>

</select>

<%

case "João Pinheiro"

%>

<select name="dia" class="input2" id="dia">

<option value="09/06">09/06</option>

<option value="23/06">23/06</option>

<option value="30/06">30/06</option>

<option value="07/07">07/07</option>

<option value="14/07">14/07</option>

<option value="21/07">21/07</option>

<option value="25/07">25/07</option>

</select>

-

<select name="horario" class="input2" id="horario">

<option value="7:00">7:00</option>

<option value="8:00">8:00</option>

<option value="9:00">9:00</option>

<option value="13:00">13:00</option>

<option value="14:00">14:00</option>

<option value="15:00">15:00</option>

<option value="16:00">16:00</option>

<option value="19:00">19:00</option>

<option value="20:00">20:00</option>

</select>

<%

end Select

%>

</td>

</tr>

<tr>

<td colspan="4"><strong>Ano de conclus&atilde;o do Ensino M&eacute;dio* </strong></td>

</tr>

<tr>

<td colspan="4"><input name="conEM" type="text" class="input2" id="conEM"></td>

</tr>

<tr>

<td colspan="4"><div align="left"><font color="#FF0000"><strong>Os campos com * s&atilde;o obrigat&oacute;rios</strong></font> </div></td>

</tr>

<tr>

<td colspan="2">&nbsp;</td>

<td colspan="2">&nbsp;</td>

</tr>

<tr>

<td width="27%">&nbsp;</td>

<td width="24%"><div align="center">

<input type="submit" name="Submit" value="Enviar" class="button">

</div></td>

<td width="20%"><input type="reset" name="Submit2" value="Limpar" class="button">

</td>

<td width="29%">&nbsp;</td>

</tr>

</table>

</form>

</td>

</tr>

<tr>

<td><img src="Imagens/rodapeinscrvest2005.gif" width="600" height="79"></td>

</tr>

</table>

<div align="center"></div></td>

</tr>

</table>

</div></td>

</tr>

<tr>

<td>&nbsp;</td>

</tr>

<tr>

<td><img src="Imagens/PixelTrasp.gif" width="15" height="5"><a href="java script:history.back(-1)" class="link2">voltar...</a></td>

</tr>

<tr>

<td>&nbsp;</td>

</tr>

</table></td>

</tr>

</table>

<%

end if

%>

Link para o comentário
Compartilhar em outros sites

2 respostass a esta questão

Posts Recomendados

  • 0
Guest Visitante

beleza este tópico já pode ser fechado já resolvi,

o erro foi meu esqueci, que eu queira fazer tinha que ser em java script.

mas muito obrigado a todos fu

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,3k
    • Posts
      652,3k
×
×
  • Criar Novo...