- Fórum WMO
- → Viewing Profile: Posts: Qwert133
Community Stats
- Group Usuários
- Active Posts 89
- Profile Views 1534
- Member Title Normal
- Age 37 years old
- Birthday March 25, 1987
-
Sexo
Não informado
Contact Information
- Windows Live qwert133133@hotmail.com
0
Neutral
User Tools
Friends
Qwert133 hasn't added any friends yet.
Latest Visitors
Posts I've Made
In Topic: Flash + Asp
10/09/2004, 18:07
Está
In Topic: Variavel
28/06/2004, 15:33
Deu erro com esse onchange;
In Topic: Combo
13/06/2004, 17:16
Naum eu mudei kr o codigo, se naum ia dar erro, mais vou passar o codigo tai:
<form name="form_incluir" method="post" action="<%=Request.ServerVariables("SCRIPT_NAME")%>" onsubmit="return verifica_form(this);">
<TABLE border=0 cellpadding=2 cellspacing=1 class=tabela_formulario>
<TR class=titulo_campos>
<TD>turma<br>
<select style="width=350" name="turma" onChange="document.location='df_inclusao.asp?turma=' + this.value" class=campos_formulario>
<option value=""></option>
<%
Set objRS2 = Server.CreateObject("ADODB.Recordset")
objRS2.CursorLocation = 3
objRS2.CursorType = 3
objRS2.LockType = 1
strQ = "SELECT turma FROM professores, dados_professores where dados_professores.matricula = '" & Session("matricula") &"' And dados_professores.matricula = professores.matricula ORDER BY materias ASC"
objRS2.Open strQ, objCon, , , &H0001
If Not objRS2.EOF Then
while not objRs2.EOF
Response.Write "<OPTION value=""" & objRs2("turma") & """>" & objRs2("turma") & "</OPTION>"
objrs2.movenext
wend
End If
%>
</select>
<form name="form_incluir" method="post" action="<%=Request.ServerVariables("SCRIPT_NAME")%>" onsubmit="return verifica_form(this);">
<TABLE border=0 cellpadding=2 cellspacing=1 class=tabela_formulario>
<TR class=titulo_campos>
<TD>turma<br>
<select style="width=350" name="turma" onChange="document.location='df_inclusao.asp?turma=' + this.value" class=campos_formulario>
<option value=""></option>
<%
Set objRS2 = Server.CreateObject("ADODB.Recordset")
objRS2.CursorLocation = 3
objRS2.CursorType = 3
objRS2.LockType = 1
strQ = "SELECT turma FROM professores, dados_professores where dados_professores.matricula = '" & Session("matricula") &"' And dados_professores.matricula = professores.matricula ORDER BY materias ASC"
objRS2.Open strQ, objCon, , , &H0001
If Not objRS2.EOF Then
while not objRs2.EOF
Response.Write "<OPTION value=""" & objRs2("turma") & """>" & objRs2("turma") & "</OPTION>"
objrs2.movenext
wend
End If
%>
</select>
In Topic: Combo
13/06/2004, 17:00
Kr, tambem não funcionou, desse jeito ficou como se fosse p rs("texto"), o valor inicial. mas ele não busca, fica sempre o mesmo valor, e aparece duas vezes o mesmo regisytro no combo.
In Topic: Combo
13/06/2004, 11:05
Kr isso é PHP.
Eu queria em ASP;
Eu queria em ASP;
- Fórum WMO
- → Viewing Profile: Posts: Qwert133
- Privacy Policy
- Regras ·