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

Formulário


Guest luciano dias

Pergunta

Guest luciano dias

olá galera to com um formulário de orçamento o cliente preenche e depois manda os dados para um e-mail, sóque esta com um problema este fomrlário não esta aceitando espaços , exemplo: no campo nome quando você coloca um nome e o sobre nome ele vai e pega somene o nome , ai quando você coloca tudo junto ele pega tudo, ou seja ele não esta aceitando espaço ... se tiver alguém ai que puder me ajudar ...


<%
seuemail="email"
destino="seuemail@dominio.com.br"
assunto="orçamento"
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0054)http://www.guaxupeonline.com.br/nacional/orcamento.htm -->
<HTML><HEAD><TITLE>Nacional Auto Peças e Serviços</TITLE>
<META http-equiv=Content-Language content=pt-br>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"><!-- Fireworks MX Dreamweaver MX target.  Created Thu Aug 15 11:00:05 GMT-0300 (Hora oficial do Brasil) 2002-->
<META content="Microsoft FrontPage 5.0" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff 
background="imagens/marquinha.jpg">
<DIV align=center>
<CENTER>
<%
if request.querystring("env")=1 then
function aspas(var)
aspas=request.form(var)
aspas=replace(aspas,"'","")
end function

nome=aspas("nome")
cidade=aspas("cidade")
endereco=aspas("endereco")
telefone=aspas("telefone")
email=aspas("email")
cpf=aspas("cpf")
marcas=aspas("marcas")
ano=aspas("ano")
modelo=aspas("modelo")
motor=aspas("motor")
q1=aspas("q1")
q2=aspas("q2")
q3=aspas("q3")
q4=aspas("q4")
q5=aspas("q5")
q6=aspas("q6")
p1=aspas("p1")
p2=aspas("p2")
p3=aspas("p3")
p4=aspas("p4")
p5=aspas("p5")
p6=aspas("p6")


Dim myMail
Dim HTML
Set myMail = Server.CreateObject("CDONTS.NewMail")


html="<html>"

html=html&"<head>"
html=html&"<meta name=""GENERATOR"" content=""Microsoft FrontPage 5.0"">"
html=html&"<meta name=""ProgId"" content=""FrontPage.Editor.Document"">"
html=html&"<meta http-equiv=""Content-Type"" content=""text/html; charset=windows-1252"">"
html=html&"<title>Orçamento Naional Auto Peças e Serviços</title>"
html=html&"</head>"

html=html&"<body>"
html=html&"<p align=""center""><b><font face=""Arial"" size=""4"">Orçamento Nacional Auto Peças e "
html=html&"Serviços<br>"
html=html&"&nbsp;</font></b></p>"
html=html&"<div align=""center"">"
html=html&"  <center>"
html=html&"<table width=""445"" height=""305"" bgcolor=""#FFFFFF"" style=""border-collapse: collapse"" bordercolor=""#111111"" cellpadding=""0"" cellspacing=""0""><tr><font face=""Arial"" size=""2""><i><b><td width=""148"" height=""256""><font class=""unnamed1"">"
html=html&"	<font face=""Arial""><b><font size=""2"" color=""#003366"">Nome:<br>"
html=html&"  </font></b><font color=""#003366""><b>"
html=html&"<input name=""nome"" type=""text"" style=""border: 1px solid #000000"" value="&nome&" >"
html=html&"  </b></font><b><font size=""2"" color=""#003366""><br>"
html=html&"Endereço:<br>"
html=html&"  </font></b><font color=""#003366""><b>"
html=html&"<input name=""endereco"" type=""text"" style=""border-style: solid; border-width: 1"" value="&endereco&" >"
html=html&"  </b></font><b><font size=""2"" color=""#003366""><br>"
html=html&"Cidade:<br>"
html=html&"  </font></b><font color=""#003366""><b>"
html=html&"<input name=""cidade"" type=""text"" style=""border-style: solid; border-width: 1"" value="&cidade&"  >"
html=html&"  </b></font><b><font size=""2"" color=""#003366""><br>"
html=html&"Telefone:<br>"
html=html&"  </font></b><font color=""#003366""><b>"
html=html&"<input name=""telefone"" type=""text"" style=""border: 1px solid #000000"" value="&telefone&"  >"
html=html&"  </b></font><b><font size=""2"" color=""#003366""><br>"
html=html&"E-mail:<br>"
html=html&"  </font></b><font color=""#003366""><b>"
html=html&"<input name=""email"" type=""text"" style=""border-style: solid; border-width: 1"" value="&email&"  >"
html=html&"  </b></font><b><font size=""2"" color=""#003366""><br>"
html=html&"  CPF:<br>"
html=html&"  </font><font color=""#003366"">"
html=html&"<input name=""cpf"" type=""text"" style=""border-style: solid; border-width: 1"" value="&cpf&"  >"
html=html&"<br>"
html=html&"&nbsp;</font></b></font></font><p>&nbsp;</p>"
html=html&"        <p>"
html=html&"  <b><font color=""#003366""><br>"
html=html&"&nbsp;</font></b></td>"
html=html&"<td width=""36"" height=""256""><b><font face=""Arial"" size=""2"" color=""#003366"">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></b></td>"
html=html&"<td width=""247"" height=""256"" colspan=""3""><font class=""unnamed1"">"
html=html&"	<font face=""Arial""><b><font size=""2"" color=""#003366"">Marca:<br>"
html=html&"  </font></b><font color=""#003366""><b>"
html=html&"  <select name=""marcas"" style=""border-style: solid; border-width: 1"">"
html=html&"    <option value="&marcas&">"&marcas&" </select></b></font><b><font size=""2"" color=""#003366""><br>ano:<br>"
html=html&"  </font></b><font color=""#003366""><b>"
html=html&"  <select name=""ano"" style=""border-style: solid; border-width: 1"">"
html=html&"    <option value="&ano&">"&ano&""
html=html&"    </select></b></font><b><font size=""2"" color=""#003366""><br>Modelo:<br>"
html=html&"</font></b><font color=""#003366""><b>"
html=html&"<Input name=""modelo"" type=""text"" style=""border-style: solid; border-width: 1"" value="&modelo&" >"
html=html&"</b></font><b><font size=""2"" color=""#003366""><br>"
html=html&"Motor:<br>"
html=html&"  </font><font color=""#003366"">"
html=html&"  <select name=""motor"" style=""border-style: solid; border-width: 1"">"
html=html&"    <option value="&motor&">"&motor&""
html=html&"    </select><br>"
html=html&"&nbsp;</font></b></font><div align=""left"">"
html=html&"  <table border=""0"" cellspacing=""1"" width=""382"" height=""142"">"
html=html&"    <tr>"
html=html&"      <td width=""87"" height=""17"" bgcolor=""#E9E9E9""><b>"
html=html&"      <font face=""Arial"" size=""2"" color=""#003366"">Quantidade</font></b></td>"
html=html&"      <td width=""150"" height=""17"" bgcolor=""#E9E9E9""><b>"
html=html&"      <font face=""Arial"" size=""2"" color=""#003366"">&nbsp; Peças</font></b></td>"
html=html&"      <td width=""134"" height=""17"" bgcolor=""#FFFFFF""><font face=""Arial"" size=""2""><b><font class=""unnamed1"">"
html=html&"      <font face=""Arial"" size=""2"" color=""#003366"">&nbsp;Preç</font></font></b></font><font size=""2"" color=""#003366""><b>os</b></font></td>"
html=html&"    </tr>"
html=html&"    <tr>"
html=html&"      <td width=""87"" height=""13"" bgcolor=""#E9E9E9"">"
html=html&"      <p align=""center""><font face=""Arial"" size=""2""><i><b><font class=""unnamed1"">"
html=html&"   <font color=""#003366"" face=""Arial"">"
html=html&"<input name=""q1"" type=""text"" style=""border: 1px solid #000000"" value="&q1&"  >"
html=html&"   </font></font></b></i></font></td>"
html=html&"      <td width=""150"" height=""13"" bgcolor=""#E9E9E9"">"
html=html&"      <p align=""center""><font face=""Arial"" size=""2""><i><b><font class=""unnamed1"">"
html=html&"   <font color=""#003366"" face=""Arial"">"
html=html&"<input name=""p1"" type=""text"" style=""border: 1px solid #000000"" value="&p1&"  >"
html=html&"   </font></font></b></i></font></td>"
html=html&"      <td width=""134"" height=""13"" bgcolor=""#FFFFFF"">"&pr1&"</td>"
html=html&"<TD width=83 bgColor=#e9e9e9 height=13> "
html=html&" <FONT face=Arial size=2><I><B><FONT class=unnamed1>"
html=html&" <FONT face=Arial color=#003366> "
html=html&" <INPUT style=BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid maxLength=30 size=11 name=pr1>"
html=html&"   </FONT></FONT></B></I></FONT></TD>"                  
html=html&"    </tr>"
html=html&"    <tr>"
html=html&"      <td width=""87"" height=""15"" bgcolor=""#E9E9E9"">"
html=html&"      <p align=""center""><font face=""Arial"" size=""2""><i><b><font class=""unnamed1"">"
html=html&"   <font color=""#003366"" face=""Arial"">"
html=html&"<input name=""q2"" type=""text"" style=""border: 1px solid #000000"" value="&q2&" >"
html=html&"   </font></font></b></i></font></td>"
html=html&"      <td width=""150"" height=""15"" bgcolor=""#E9E9E9"">"
html=html&"      <p align=""center""><font face=""Arial"" size=""2""><i><b><font class=""unnamed1"">"
html=html&"   <font color=""#003366"" face=""Arial"">"
html=html&"<input name=""p2"" type=""text"" style=""border: 1px solid #000000"" value="&p2&"  >"
html=html&"   </font></font></b></i></font></td>"
html=html&"   <td width=134 height=15 bgcolor=#FFFFFF>"&pr2&"</td>"
html=html&"  <TD width=83 bgColor=#e9e9e9 height=15><FONT face=Arial size=2> <I>"
html=html&"  <B><FONT class=unnamed1><FONT face=Arial  color=#003366>"
html=html&"  <INPUT style=BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid  maxLength=30 size=11 name=pr2>"
html=html&"  </FONT></FONT></B></I></FONT></TD>"                                               
html=html&"    </tr>"
html=html&"    <tr>"
html=html&"      <td width=""87"" height=""15"" bgcolor=""#E9E9E9"">"
html=html&"      <p align=""center""><font face=""Arial"" size=""2""><i><b><font class=""unnamed1"">"
html=html&"   <font color=""#003366"" face=""Arial"">"
html=html&"<input name=""q3"" type=""text"" style=""border: 1px solid #000000"" value="&q3&"  >"
html=html&"   </font></font></b></i></font></td>"
html=html&"      <td width=""150"" height=""15"" bgcolor=""#E9E9E9"">"
html=html&"      <p align=""center""><font face=""Arial"" size=""2""><i><b><font class=""unnamed1"">"
html=html&"   <font color=""#003366"" face=""Arial"">"
html=html&"<input name=""p3"" type=""text"" style=""border: 1px solid #000000"" value="&p3&"  >"
html=html&"   </font></font></b></i></font></td>"
html=html&"      <td width=""134"" height=""15"" bgcolor=""#FFFFFF"">"&pr3&"</td>"
html=html&"  <TD width=83 bgColor=#e9e9e9 height=15><FONT face=Arial size=2> <I>"
html=html&"  <B><FONT class=unnamed1><FONT face=Arial  color=#003366>"
html=html&"  <INPUT style=BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid  maxLength=30 size=11 name=pr3>"
html=html&"  </FONT></FONT></B></I></FONT></TD>  "
html=html&"    </tr>"
html=html&"    <tr>"
html=html&"      <td width=""87"" height=""18"" bgcolor=""#E9E9E9"">"
html=html&"      <p align=""center""><font face=""Arial"" size=""2""><i><b><font class=""unnamed1"">"
html=html&"   <font color=""#003366"" face=""Arial"">"
html=html&"<input name=""q4"" type=""text"" style=""border: 1px solid #000000"" value="&q4&"  >"
html=html&"   </font></font></b></i></font></td>"
html=html&"      <td width=""150"" height=""18"" bgcolor=""#E9E9E9"">"
html=html&"      <p align=""center""><font face=""Arial"" size=""2""><i><b><font class=""unnamed1"">"
html=html&"   <font color=""#003366"" face=""Arial"">"
html=html&"<input name=""p4"" type=""text"" style=""border: 1px solid #000000"" value="&p4&"  >"
html=html&"   </font></font></b></i></font></td>"
html=html&"      <td width=""134"" height=""18"" bgcolor=""#FFFFFF"">"&pr4&"</td>"
html=html&"  <TD width=83 bgColor=#e9e9e9 height=15><FONT face=Arial size=2> <I>"
html=html&"  <B><FONT class=unnamed1><FONT face=Arial  color=#003366>"
html=html&"  <INPUT style=BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid  maxLength=30 size=11 name=pr4>"
html=html&"  </FONT></FONT></B></I></FONT></TD>  "
html=html&"    </tr>"
html=html&"    <tr>"
html=html&"      <td width=""87"" height=""18"" bgcolor=""#E9E9E9"">"
html=html&"      <p align=""center""><font face=""Arial"" size=""2""><i><b><font class=""unnamed1"">"
html=html&"   <font color=""#003366"" face=""Arial"">"
html=html&"<input name=""q5"" type=""text"" style=""border: 1px solid #000000"" value="&q5&"  >"
html=html&"   </font></font></b></i></font></td>"
html=html&"      <td width=""150"" height=""18"" bgcolor=""#E9E9E9"">"
html=html&"      <p align=""center""><font face=""Arial"" size=""2""><i><b><font class=""unnamed1"">"
html=html&"   <font color=""#003366"" face=""Arial"">"
html=html&"<input name=""p5"" type=""text"" style=""border: 1px solid #000000"" value="&p5&"  >"
html=html&"   </font></font></b></i></font></td>"
html=html&"      <td width=""134"" height=""18"" bgcolor=""#FFFFFF"">"&pr5&"</td>"
html=html&"  <TD width=83 bgColor=#e9e9e9 height=15><FONT face=Arial size=2> <I>"
html=html&"  <B><FONT class=unnamed1><FONT face=Arial  color=#003366>"
html=html&"  <INPUT style=BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid  maxLength=30 size=11 name=pr5>"
html=html&"  </FONT></FONT></B></I></FONT></TD>  "
html=html&"    </tr>"
html=html&"    <tr>"
html=html&"      <td width=""87"" height=""22"" bgcolor=""#E9E9E9"">"
html=html&"      <p align=""center""><font face=""Arial"" size=""2""><i><b><font class=""unnamed1"">"
html=html&"   <font color=""#003366"" face=""Arial"">"
html=html&"<input name=""q6"" type=""text"" style=""border: 1px solid #000000"" value="&q6&"  >"
html=html&"   </font></font></b></i></font></td>"
html=html&"      <td width=""150"" height=""22"" bgcolor=""#E9E9E9"">"
html=html&"      <p align=""center""><font face=""Arial"" size=""2""><i><b><font class=""unnamed1"">"
html=html&"   <font color=""#003366"" face=""Arial"">"
html=html&"<input name=""p6"" type=""text"" style=""border: 1px solid #000000"" value="&p6&"  >"
html=html&"   </font></font></b></i></font></td>"
html=html&"      <td width=""134"" height=""22"" bgcolor=""#FFFFFF"">"&pr6&"</td>"
html=html&"  <TD width=83 bgColor=#e9e9e9 height=15><FONT face=Arial size=2> <I>"
html=html&"  <B><FONT class=unnamed1><FONT face=Arial  color=#003366>"
html=html&"  <INPUT style=BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid  maxLength=30 size=11 name=pr6>"
html=html&"  </FONT></FONT></B></I></FONT></TD>  "
html=html&"    </tr>"
html=html&"  </table>"
html=html&"</div>"
html=html&"<p><b><font face=Arial color=#CC0000>Total:</font></b><FONT face=Arial size=2><I><B><FONT class=unnamed1><FONT face=Arial color=#003366>"                         
html=html&" <INPUT style=BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid maxLength=30 size=23 name=total>"
html=html&" </FONT></FONT></B></I></FONT>"
html=html&"</font></td>"


html=html&"   </b></i></font>"
html=html&"   </tr><tr>"
html=html&"    <font face=""Arial"" size=""2""><i><b>"
html=html&"    <td align=""center"" colspan=""2"" width=""182"" height=""13"">&nbsp;"
html=html&"	</td>"


html=html&"   </b></i></font>"
html=html&"    <td align=""center"" width=""95"" height=""13"">&nbsp;"
html=html&"	</td>"


html=html&"    <td align=""center"" width=""98"" height=""13"">"
html=html&"	<p align=""right""><font face=""Arial"" size=""2""><i><b><font class=""unnamed1"">"



html=html&"   </tr>"
html=html&"  <tr>"
html=html&"    <td align=""center"" colspan=""5"" width=""439"" height=""28"">&nbsp;"
html=html&"	</td>"


html=html&"   </tr>"
html=html&"  </table>"
html=html&"  </center>"
html=html&"</div>"
html=html&"</form>"
      
html=html&"      <p class=""MsoNormal"" style=""text-align:justify"">&nbsp;"
html=html&"      </td>"
html=html&"    </tr>"
html=html&"  </table>"
html=html&"</body>"

html=html&"</html>"

myMail.From=seuemail
myMail.To=destino
myMail.Subject="Orçamento"
myMail.BodyFormat=0
myMail.MailFormat=0
myMail.Body=html
'myMail.Send
'set mymail=nothing
'Response.Write "Message Sent"

if myMail.Send = 0 then
msg="Email enviado com sucesso"
else
msg="Falha no envio tente de novo"
end if
       
Set myMail = Nothing

response.write "<script>"
response.write "alert('msg');"
response.write "</script>"



end if
%>

ai esta a programação ... o que pode ser hein ???? se tiver alguém que posso me ajudar ...

Link para o comentário
Compartilhar em outros sites

1 resposta a esta questão

Posts Recomendados

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