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

Pegar Dados


matrix2003

Pergunta

Pessoal nunca fiz isto mais agora to precisando de uma base de como fazer to montando um cadastro com 2 faces

tipo na primeira pagina

tem lá

nome

email

categoria

data

liçença

descrição

ai tenho que pegar estes dados levar para outra pagina e lá teria uploid ai cadastraria tudo em um db

como que faço isto..

Link para o comentário
Compartilhar em outros sites

2 respostass a esta questão

Posts Recomendados

  • 0

No formulário que você vai pegar os primeiros dados você vai chamar a segunda pagina pelo metodo POST:

<form name="prim" method="post" action="pagina2.asp">
...
...
   Nome: <input name="nome" type="text" />
</form>
Na outra pagina você recupera os dados com o Request.Form("nome_campo"):
nome = Request.Form("nome")

Link para o comentário
Compartilhar em outros sites

  • 0
Guest zanelati2002

no caso estou usando este form queria gravar na variavel pois depois vai para um aoutra pagina

sera assim neste pagina tera este form

ai vai para outra pagina que tera o uploid

ai cadastrarei tudo no db tem uma outra opção

<TD colSpan=2><strong><font color="#006699">Seus 
                                Dados</font><FONT 
                                face="Verdana, Arial, Helvetica, sans-serif" 
                                color=#006699 size=1>:</FONT></strong></TD>
                        </FONT>
                            </tr>
                    <tr>
          <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <TD width="49%"><strong>N<FONT 
                                face="Verdana, Arial, Helvetica, sans-serif" 
                                size=1>ome:</FONT></strong></TD>
                                <TD width="40%" rowSpan=5>
                                <DIV align=center><STRONG><FONT 
                                face="Verdana, Arial, Helvetica, sans-serif" 
                                color=#006699 size=1>* campos 
                                obrigatórios</FONT></STRONG></DIV></TD>
                        </FONT>
                            </tr>
                    <tr>
          <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <TD>
                                <INPUT class=botao 
                                id=nome maxLength=20 size=20 name=nome value="<%=Session("nome")%>"> 
                                <STRONG><FONT 
                                face="Verdana, Arial, Helvetica, sans-serif" 
                                color=#006699 size=1>*</FONT></STRONG></TD>
                        </FONT>
                            </tr>
                    <tr>
          <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <TD><strong>E-mail:</strong></TD>
                        </FONT>
                            </tr>
                    <tr>
          <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <TD>
                                <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <INPUT class=botao 
                                id=email maxLength=20 size=20 name=email value="<%=Session("email")%>"></FONT>
                                <STRONG><FONT 
                                face="Verdana, Arial, Helvetica, sans-serif" 
                                color=#006699 size=1>*</FONT></STRONG></TD>
                        </FONT>
                            </tr>
                    <tr>
          <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <TD> </TD>
                        </FONT>
                                </tr>
                    <tr>
          <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <TD> </TD>
                                <TD> </TD>
                        </FONT>
                                </tr>
                    <tr>
          <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <TD colSpan=2><STRONG>
                                <FONT 
                                face="Verdana, Arial, Helvetica, sans-serif" 
                                color=#006699 size=1>Dados do seu Script:</FONT></STRONG></TD>
                        </FONT>
                            </tr>
                    <tr>
          <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <TD height=14><strong>N<FONT 
                                face="Verdana, Arial, Helvetica, sans-serif" 
                                size=1>ome do Script:</FONT></strong></TD>
                                <TD> </TD>
                        </FONT>
                            </tr>
                    <tr>
          <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <TD>
                                <INPUT class=botao 
                                id=titulo maxLength=100 name=nome_script size="30"> <STRONG><FONT 
                                face="Verdana, Arial, Helvetica, sans-serif" 
                                color=#006699 size=1>*</FONT></STRONG></TD>
                                <TD> </TD>
                        </FONT>
                            </tr>
                    <tr>
                                  <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <TD height=14><strong>
                                <FONT 
                                face="Verdana, Arial, Helvetica, sans-serif" 
                                size=1>Categoria:</FONT></strong></TD>
                                <TD><STRONG><FONT 
                                face="Verdana, Arial, Helvetica, sans-serif" 
                                size=1>Data </FONT>do Cadastro</STRONG></TD>
                        </FONT>
                                </tr>
                    <tr>
                                  <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <TD>
                                <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
  <select name="categoria" size="1" id="coluna">
    <option value="1">ASP</option>
    <option value="2">ASP.NET</option>
    <option value="3">C/C++</option>
    <option value="4">Cold Fusion</option>
    <option value="6">CGI</option>
    <option value="7">Delphi</option>
    <option value="8">JSP</option>
    <option value="9">PHP</option>
    <option value="10">Python</option>
    <option value="11">Visual Basic</option>
    <option value="12">XMl</option>
    <option value="13">Internet</option>
    <option value="14">Informatica</option>
    <option value="15">CorelDraw</option>
    <option value="16">Programas Hackers</option>
  </select></FONT>
                                <STRONG><FONT 
                                face="Verdana, Arial, Helvetica, sans-serif" 
                                color=#006699 size=1>*</FONT></STRONG></TD>
                                <TD><font face="Verdana" size="1" color="#000000"><b><INPUT id=birth_day maxLength=2 name=cad_dia 
             onkeyup="java script: if(document.form.birth_day.value.length == 2){document.form.birth_month.focus()}"
            readOnly size=2 
            style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: black 1px groove; BORDER-LEFT: black 1px groove; BORDER-RIGHT: black 1px groove; BORDER-TOP: black 1px groove; COLOR: black; FONT-FAMILY: verdana; FONT-SIZE: 8pt" value="<%=day(now)%>"> 
                                  / 
                                <INPUT id=birth_month maxLength=2 name=cad_mes 
             onkeyup="java script: if(document.form.birth_month.value.length == 2){document.form.birth_year.focus()}"
            readOnly size=2 
            style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: black 1px groove; BORDER-LEFT: black 1px groove; BORDER-RIGHT: black 1px groove; BORDER-TOP: black 1px groove; COLOR: black; FONT-FAMILY: verdana; FONT-SIZE: 8pt" value="<%=month(now)%>"> 
                                / <INPUT id=birth_year maxLength=4 name=cad_ano 
             onkeyup="java script: if(document.form.birth_year.value.length == 4){document.form.cidade.focus()}"
            readOnly size=4 
            style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: black 1px groove; BORDER-LEFT: black 1px groove; BORDER-RIGHT: black 1px groove; BORDER-TOP: black 1px groove; COLOR: black; FONT-FAMILY: verdana; FONT-SIZE: 8pt" value="<%=year(now)%>"></b></font></TD>
                        </FONT>
                                </tr>
                    <tr>
                                  <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <TD height=14><strong>
                                <FONT 
                                face="Verdana, Arial, Helvetica, sans-serif" 
                                size=1>Tamanho:</FONT></strong></TD>
                                <TD> </TD>
                        </FONT>
                                </tr>
                    <tr>
                                  <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <TD>
                                <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <INPUT class=botao 
                                id=tamanho maxLength=100 name=tamanho size="15"></FONT>
                                <STRONG><FONT 
                                face="Verdana, Arial, Helvetica, sans-serif" 
                                color=#006699 size=1>*</FONT></STRONG></TD>
                                <TD> </TD>
                        </FONT>
                                </tr>
                    <tr>
          <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <TD colSpan=2> </TD>
                        </FONT>
                            </tr>
                    <tr>
          <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <TD colSpan=2>
                                <FONT 
                                face="Verdana, Arial, Helvetica, sans-serif" 
                                size=1><STRONG>Descrição do Script: <FONT 
                                face="Verdana, Arial, Helvetica, sans-serif" 
                                color=#006699 size=1>*</FONT></STRONG></FONT></TD>
                        </FONT>
                            </tr>
                    <tr>
          <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <TD colSpan=2>
                                    <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <TEXTAREA class=botao onkeypress=Verifica() id=texto onkeyup=Verifica() name=descricao rows=3 cols=80 style="font-size: 9px; cursor: pointer; color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; border-left: 1px solid #f5f5f5; border-right: 1px solid #737373; border-top: 1px solid #f5f5f5; border-bottom: 1px solid #737373; background-color: #d2d2d2"></TEXTAREA></font> </TD>
                        </FONT>
                            </tr>
                    <tr>
          <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <TD colSpan=2><FONT 
                                face="Verdana, Arial, Helvetica, sans-serif" 
                                size=1>Máximo de caracteres:</FONT> 
                                <INPUT 
                                class=botao id=limite readOnly size=2 
                                value=230 name="T1"></TD>
                        </FONT>
                            </tr>
                    <tr>
          <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <TD> </TD>
                                <TD> </TD>
                        </FONT>
                            </tr>
                    <tr>
          <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                <TD colSpan=2>
                                <p align="center">
          <FONT size=1 face="Verdana, Arial, Helvetica, sans-serif">
                                    <INPUT class=botao onclick="return Valida(); verifica()" type=submit value=Enviar name=Submit></FONT></TD>

pode me ajudar como gravar em variaveis

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,2k
×
×
  • Criar Novo...