Tenho um formulário para cadastro de emails feito com o FP em minha página, funcionava legal qdo a página era HTM, qdo renomeei para ASP parou de funcionar, alguém pode me dar uma ajudazinha!
grato
Zabani
Formulário Do Fp
Started By zabani, 29/12/2004, 23:18
5 replies to this topic
#1
Posted 29/12/2004, 23:18
#2
Posted 30/12/2004, 01:00
O código sofreu alguma alteração ? E o arquivo que executa as ações do formulário, foi modificado ?
#3
Posted 30/12/2004, 18:13
Olá Kaled, depois que renomeei para ASP o codigo se alterou sozinho veja abaixo:
Qdo era Html:
<td height="247" bgcolor="#F7F9FB" style="padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px">
<form method="POST" target="_blank" action="--WEBBOT-SELF--" onsubmit="location.href='_derived/nortbots.htm';return false;" language="JavaScript" name="FrontPage_Form1" webbot-onSubmit="return FrontPage_Form1_Validator(this)">
<!--webbot bot="SaveResults" U-File="_PRIVATE/form_results_cadastro.txt" S-Format="TEXT/TSV" S-Label-Fields="FALSE" B-Reverse-Chronology="FALSE" S-Email-Format="HTML/BR" S-Email-Address="neotantra@neotantra.com" B-Email-Label-Fields="FALSE" B-Email-ReplyTo-From-Field="TRUE" S-Email-ReplyTo="email" B-Email-Subject-From-Field="FALSE" S-Email-Subject="cadastro" S-Builtin-Fields S-Form-Fields="nome sexo idade email estado " U-Confirmation-Url="CONFIRMA_atualizacao.htm" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" endspan i-checksum="43374" -->
<p align="center" style="margin-top: 0; margin-bottom: 0">
<font face="Arial" size="1" color="#3278A3">nome</font></p>
<p align="center" style="margin-top: 0; margin-bottom: 0">
<!--webbot bot="Validation" s-display-name="digite seu nome" b-value-required="TRUE" --><input type="text" name="nome" size="11"></p>
<p align="center">
<font face="Arial" size="1" color="#3278A3">sexo</font><!--webbot bot="Validation" s-display-name="masculino ou feminino" b-value-required="TRUE" --><input type="text" name="sexo" size="1"><font face="Arial" size="1">
<font color="#3278A3">idade</font></font><font color="#000080" size="2"><!--webbot bot="Validation" s-display-name="digite sua idade" b-value-required="TRUE" --><input type="text" name="idade" size="1"></font></p>
<p align="center" style="margin-top: 0; margin-bottom: 0">
<font face="Arial" size="1" color="#3278A3">
e-mail</font></p>
<p align="center" style="margin-top: 0; margin-bottom: 0">
<font color="#000080" size="2">
<!--webbot bot="Validation" s-display-name="digite seu email" b-value-required="TRUE" --><input type="text" name="email" size="13"></font></p>
<p align="center" style="margin-top: 0; margin-bottom: 0"> </p>
<p align="center" style="margin-top: 0; margin-bottom: 0">
<font size="1" color="#3278A3" face="Arial">
estado onde reside</font></p>
<p align="center" style="margin-top: 0; margin-bottom: 0">
<font color="#000080" size="2">
<!--webbot bot="Validation" s-display-name="digite o estado onde voce reside" b-value-required="TRUE" --><input type="text" name="estado" size="8"></font></p>
<p align="center">
<input type="submit" value="Enviar" name="B1"><input type="reset" value="Limpar" name="B2"></p>
</form>
</td>
Qdo renomeei para ASP ficou assim:
<td height="154" bgcolor="#F7F9FB" style="padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px">
<form method="POST" name="FrontPage_Form1" action="--WEBBOT-SELF--" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript">
<!--webbot bot="SaveResults" U-File="_PRIVATE/form_results_cadastro.txt" S-Format="TEXT/TSV" S-Label-Fields="FALSE" B-Reverse-Chronology="FALSE" S-Email-Format="HTML/BR" S-Email-Address="neotantra@neotantra.com" B-Email-Label-Fields="FALSE" B-Email-ReplyTo-From-Field="TRUE" S-Email-ReplyTo="email" B-Email-Subject-From-Field="FALSE" S-Email-Subject="cadastro" S-Builtin-Fields S-Form-Fields="nome email " U-Confirmation-Url="CONFIRMA_atualizacao.asp" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" i-checksum="43374" endspan -->
<p align="center" style="line-height: 100%; margin-top: 0; margin-bottom: 3px"> </p>
<p align="center" style="line-height: 100%; margin-top: 0; margin-bottom: 3px">
<font color="#3278A3">nome</font></p>
<p align="center" style="line-height: 100%; margin-top: 0; margin-bottom: 0">
<!--webbot bot="Validation" s-display-name="digite seu nome" b-value-required="TRUE" --><input type="text" name="nome" size="18"></p>
<p align="center" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
<p align="center" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
<p align="center" style="line-height: 100%; margin-top: 0; margin-bottom: 3px">
<font color="#3278A3">e-mail</font></p>
<p align="center" style="line-height: 100%; margin-top: 0; margin-bottom: 0">
<font color="#000080" size="2">
<!--webbot bot="Validation" s-display-name="digite seu e-mail" b-value-required="TRUE" --><input type="text" name="email" size="18"></font></p>
<p align="center" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
<p align="center">
<input type="submit" value="Enviar" name="B1"><input type="reset" value="Limpar" name="B2"></p>
</form>
</td>
Não entendo muito disso, por isso preciso de ajuda!
Obrigado
Zabani
Qdo era Html:
<td height="247" bgcolor="#F7F9FB" style="padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px">
<form method="POST" target="_blank" action="--WEBBOT-SELF--" onsubmit="location.href='_derived/nortbots.htm';return false;" language="JavaScript" name="FrontPage_Form1" webbot-onSubmit="return FrontPage_Form1_Validator(this)">
<!--webbot bot="SaveResults" U-File="_PRIVATE/form_results_cadastro.txt" S-Format="TEXT/TSV" S-Label-Fields="FALSE" B-Reverse-Chronology="FALSE" S-Email-Format="HTML/BR" S-Email-Address="neotantra@neotantra.com" B-Email-Label-Fields="FALSE" B-Email-ReplyTo-From-Field="TRUE" S-Email-ReplyTo="email" B-Email-Subject-From-Field="FALSE" S-Email-Subject="cadastro" S-Builtin-Fields S-Form-Fields="nome sexo idade email estado " U-Confirmation-Url="CONFIRMA_atualizacao.htm" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" endspan i-checksum="43374" -->
<p align="center" style="margin-top: 0; margin-bottom: 0">
<font face="Arial" size="1" color="#3278A3">nome</font></p>
<p align="center" style="margin-top: 0; margin-bottom: 0">
<!--webbot bot="Validation" s-display-name="digite seu nome" b-value-required="TRUE" --><input type="text" name="nome" size="11"></p>
<p align="center">
<font face="Arial" size="1" color="#3278A3">sexo</font><!--webbot bot="Validation" s-display-name="masculino ou feminino" b-value-required="TRUE" --><input type="text" name="sexo" size="1"><font face="Arial" size="1">
<font color="#3278A3">idade</font></font><font color="#000080" size="2"><!--webbot bot="Validation" s-display-name="digite sua idade" b-value-required="TRUE" --><input type="text" name="idade" size="1"></font></p>
<p align="center" style="margin-top: 0; margin-bottom: 0">
<font face="Arial" size="1" color="#3278A3">
e-mail</font></p>
<p align="center" style="margin-top: 0; margin-bottom: 0">
<font color="#000080" size="2">
<!--webbot bot="Validation" s-display-name="digite seu email" b-value-required="TRUE" --><input type="text" name="email" size="13"></font></p>
<p align="center" style="margin-top: 0; margin-bottom: 0"> </p>
<p align="center" style="margin-top: 0; margin-bottom: 0">
<font size="1" color="#3278A3" face="Arial">
estado onde reside</font></p>
<p align="center" style="margin-top: 0; margin-bottom: 0">
<font color="#000080" size="2">
<!--webbot bot="Validation" s-display-name="digite o estado onde voce reside" b-value-required="TRUE" --><input type="text" name="estado" size="8"></font></p>
<p align="center">
<input type="submit" value="Enviar" name="B1"><input type="reset" value="Limpar" name="B2"></p>
</form>
</td>
Qdo renomeei para ASP ficou assim:
<td height="154" bgcolor="#F7F9FB" style="padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px">
<form method="POST" name="FrontPage_Form1" action="--WEBBOT-SELF--" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript">
<!--webbot bot="SaveResults" U-File="_PRIVATE/form_results_cadastro.txt" S-Format="TEXT/TSV" S-Label-Fields="FALSE" B-Reverse-Chronology="FALSE" S-Email-Format="HTML/BR" S-Email-Address="neotantra@neotantra.com" B-Email-Label-Fields="FALSE" B-Email-ReplyTo-From-Field="TRUE" S-Email-ReplyTo="email" B-Email-Subject-From-Field="FALSE" S-Email-Subject="cadastro" S-Builtin-Fields S-Form-Fields="nome email " U-Confirmation-Url="CONFIRMA_atualizacao.asp" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" i-checksum="43374" endspan -->
<p align="center" style="line-height: 100%; margin-top: 0; margin-bottom: 3px"> </p>
<p align="center" style="line-height: 100%; margin-top: 0; margin-bottom: 3px">
<font color="#3278A3">nome</font></p>
<p align="center" style="line-height: 100%; margin-top: 0; margin-bottom: 0">
<!--webbot bot="Validation" s-display-name="digite seu nome" b-value-required="TRUE" --><input type="text" name="nome" size="18"></p>
<p align="center" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
<p align="center" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
<p align="center" style="line-height: 100%; margin-top: 0; margin-bottom: 3px">
<font color="#3278A3">e-mail</font></p>
<p align="center" style="line-height: 100%; margin-top: 0; margin-bottom: 0">
<font color="#000080" size="2">
<!--webbot bot="Validation" s-display-name="digite seu e-mail" b-value-required="TRUE" --><input type="text" name="email" size="18"></font></p>
<p align="center" style="line-height: 100%; margin-top: 0; margin-bottom: 0"> </p>
<p align="center">
<input type="submit" value="Enviar" name="B1"><input type="reset" value="Limpar" name="B2"></p>
</form>
</td>
Não entendo muito disso, por isso preciso de ajuda!
Obrigado
Zabani
#4
Posted 30/12/2004, 18:37
para trabalhar com asp, não recomendo usar o front page.... use o dreamweaver
faça assim
página que contem o form
página que envia o e-mail (asp)
envia_email.asp
lembrando que este codigo de envio que passei usa o componente Persits...
qualquer duvida estamos ae
faça assim
página que contem o form
<form name="form1" method="post" action="envia_email.asp"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="8%"><div align="right">nome</div></td> <td width="92%"><input name="nome" type="text" id="nome" size="50"></td> </tr> <tr> <td><div align="right">sexo</div></td> <td><input name="sexo" type="text" id="sexo" size="50"></td> </tr> <tr> <td><div align="right">idade</div></td> <td><input name="idade" type="text" id="idade" size="50"></td> </tr> <tr> <td><div align="right">email</div></td> <td><input name="email" type="text" id="email" size="50"></td> </tr> <tr> <td><div align="right">estado</div></td> <td><input name="estado" type="text" id="estado" size="50"></td> </tr> <tr> <td> </td> <td><input type="submit" name="Submit" value="Enviar"></td> </tr> </table> </form>
página que envia o e-mail (asp)
envia_email.asp
<% Set Mail = Server.CreateObject("Persits.MailSender") Mail.Host = "SMTP.SERVIDOR.COM.BR" Mail.From = "EMAIL_REMETENTE" Mail.FromName = "Sistema de E-mail" Mail.AddAddress "EMAIL_DESTINATARIO", "Sistema de E-mail" Mail.Subject = "#Contato - Site#" Mail.IsHTML = True Mail.Body = "" & Chr(13) & Chr(10) & "" & Chr(13) & Chr(10) & "O Sr. "& Request("nome") &" estava navegando pelo site e entrou em contato. Abaixo segue os dados:</b><br><b>Nome:</b> "& Request("nome") &"<br><b>Sexo:</b> "& Request("sexo") &"<br><b>Idade:</b> "& Request("idade") &"<br><b>E-mail:</b> "& Request("email") &"<br><b>Estado:</b> "& Request("estado") &"" On Error Resume Next Mail.Send If Err <> 0 Then Response.Write "Erro encontrado: " & Err.Description End If %> <%Set Mail = Nothing%> E-mail enviado com sucesso!!
lembrando que este codigo de envio que passei usa o componente Persits...
qualquer duvida estamos ae
#5
Posted 30/12/2004, 18:39
Seu servidor aceita extensões do FrontPage, porém eu acho que ele só as executa quando o arquivo tem a extensão .html ou .htm
#6
Posted 31/12/2004, 00:46
Olá, obrigado a todos pelas dicas, consegui resolver o meu problema!!!!
um abraço
Zabani
um abraço
Zabani
1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)