Jump to content


Photo

Formulario De Email, Como Fazer Soh Com Html?


  • Faça o login para participar
11 replies to this topic

#1 pedrokike

pedrokike

    um dia eu aprendo

  • Usuários
  • 623 posts
  • Sexo:Masculino
  • Localidade:Curitiba-PR
  • Interesses:PC, Esportes, Carros, Net e Mulheres!!!!hehehehe

Posted 15/03/2004, 09:20

Ola,

Ae procurei mas num achei nada q me ajudasse!!

to kerendo fazer um formulario de email mas tem q ser em html (num sei php, e nenhuma outra linguagem dinamica, e nem sei se meu host tem suport pra php <_< ) mas eu keria q ele naum abrisse o outlook e os campos ficassem separados, pq do jeito q eu fiz, veio basicamente td em codigo, bem doido! :blink:

eu tenho os campos Nome, Email e da mensagem, e no email enviado eu keria q ficasse td separadinho, e o assunto fosse definido por mim, no caso eh sobre uma festa q vai ter na minha cidade!

como faço isso??

eh meio urgente!!

vlw!!!

t++
Pedro.

"Obstáculos são aquelas coisas assustadoras que você vê quando desvia seus olhos de sua meta." Henry Ford

#2 Alex Hiroshi

Alex Hiroshi

    Super Veterano

  • Ex-Admins
  • 4923 posts
  • Sexo:Masculino
  • Localidade:São Paulo - SP

Posted 15/03/2004, 10:07

uhmm. com html nao vai da nao ehm...
vc vai ter que usar uma linguagem dinamica..
tipo.. como vc nao sabe php.. vc pode pegar aquele arquivo que tem aqui no site do wmonline de formulario (ta la na parte daquele gerador de form online)..
ai eh so baixar e fazer o seu formulario e colocar na action a url do arquivo que vc baixou do site...
se o seu servidor nao aceitar php.. se cadastra em um ai qualquer e manda esse arquivo...
é um jeito mais facil eu acho :unsure:
Fórum WMO - Equipe de Desenvolvimento / Banco de Dados - Ex-Administrador

#3 pedrokike

pedrokike

    um dia eu aprendo

  • Usuários
  • 623 posts
  • Sexo:Masculino
  • Localidade:Curitiba-PR
  • Interesses:PC, Esportes, Carros, Net e Mulheres!!!!hehehehe

Posted 15/03/2004, 10:46

Ola,

olha segui sua dica, e achei esse codigo:
<? 
###################################################### 
#Baseado na versão 1.0 do script do Alexander Benatti 
#Foram utilizados exemplos extraídos do www.php.net    
#Este script é GNU - Licensa Pública              
#--------------------------------------------------- 
#Nelson R. Moura                              
#nelson@sitecom.com.br                          
#modificado por Allison R. Pavan 
#allison_pavan@yahoo.com.br                    
###################################################### 
if ($action != "upload") 
{ 

?> 
<html> 
<head> 
<title>Untitled Document</title> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
</head> 

<body bgcolor="#CCCCCC" text="#000000"> 
<FORM METHOD="post"  ENCTYPE="multipart/form-data"> 
<INPUT TYPE="hidden" NAME="MAX_FILE_SIZE" VALUE="1000000"> 
<INPUT TYPE="hidden" NAME="action" VALUE="upload"> 
  <TABLE BORDER="0" cellpadding="1" cellspacing="1" bgcolor="#000000" width="400"> 
    <TR bgcolor="#FFFFFF"> 
      <TD><font size="2"><b><font face="Verdana, Arial, Helvetica, sans-serif">Nome: 
        </font></b></font></TD> 
      <TD><font size="2"><b><font face="Verdana, Arial, Helvetica, sans-serif"> 
        <input type="text" name="nome" size=40> 
        </font></b></font></TD> 
    </TR> 
    <TR bgcolor="#FFFFFF"> 
      <TD><font size="2"><b><font face="Verdana, Arial, Helvetica, sans-serif">Idade: 
        </font></b></font></TD> 
      <TD><font size="2"><b><font face="Verdana, Arial, Helvetica, sans-serif"> 
        <input type="text" name="idade" size=40> 
        </font></b></font></TD> 
    </TR> 
    <TR bgcolor="#FFFFFF"> 
      <TD><font size="2"><b><font face="Verdana, Arial, Helvetica, sans-serif">E-mail: 
        </font></b></font></TD> 
      <TD><font size="2"><b><font face="Verdana, Arial, Helvetica, sans-serif"> 
        <input type="text" name="email" size=40> 
        </font></b></font></TD> 
    </TR> 
    <TR bgcolor="#FFFFFF"> 
      <TD><font size="2"><b><font face="Verdana, Arial, Helvetica, sans-serif">O 
        que gosta: </font></b></font></TD> 
      <TD><font size="2"><b><font face="Verdana, Arial, Helvetica, sans-serif"> 
        <input type="text" name="fazer" size=40> 
        </font></b></font></TD> 
    </TR> 
    <TR bgcolor="#FFFFFF"> 
      <TD><font size="2"><b><font face="Verdana, Arial, Helvetica, sans-serif">Mensagem: 
        </font></b></font></TD> 
      <TD><font size="2"><b><font face="Verdana, Arial, Helvetica, sans-serif"> 
        <TEXTAREA NAME="mensagem" ROWS="10" COLS="50"></TEXTAREA> 
        </font></b></font></TD> 
    </TR> 
    <TR bgcolor="#FFFFFF"> 
      <TD><font size="2"><b><font face="Verdana, Arial, Helvetica, sans-serif">Anexo: 
        </font></b></font></TD> 
      <TD><font size="2"><b><font face="Verdana, Arial, Helvetica, sans-serif"> 
        <INPUT TYPE="file" NAME="anexo"> 
        </font></b></font></TD> 
    </TR> 
    <TR> 
      <TD COLSPAN="2" bgcolor="#FFFFFF"> 
        <center> 
          <font size="2"><b><font face="Verdana, Arial, Helvetica, sans-serif"> 
          <INPUT TYPE="submit" VALUE="Enviar"> 
          </font> </b> </font> 
        </center> 
      </TD> 
    </TR> 
  </TABLE> 
</FORM> 
<? 
} 

###################################Depois de clicar no Enviar 

if ($action == "upload") 

{ 

$mime_list = array("html"=>"text/html","htm"=>"text/html", "txt"=>"text/plain", "rtf"=>"text/enriched","csv"=>"text/tab-separated-values","css"=>"text/css","gif"=>"image/gif"); 

$ABORT = FALSE; 

$boundary = "XYZ-" . date(dmyhms) . "-ZYX"; 

$message = "--$boundary\n"; 
$message .= "Content-Transfer-Encoding: 8bits\n"; 
$message .= "Content-Type: text/plain; charset=\"ISO-8859-1\"\n\n"; 
$message .= "Nome:  ".$nome."\n"; 
$message .= "Idade: ".$idade."\n"; 
$message .= "E-mail: ".$email."\n"; 
$message .= "O que gosta: ".$fazer."\n"; 
$message .= "Mensagem :".$mensagem."\n"; 
$message .= "\n"; 

#//attachment file names with full path 
$attachments[1] = $anexo; 
#$attachments[2] = "c:\etc"; 
#$attachments[3] = "c:\etc"; 

//check that the attachment files exist and if so then encode 
foreach ($attachments as $key => $full_path) { 
if ($full_path !='') { 
      if (file_exists($full_path)){ 
      //try to open 
            if ($fp = fopen($full_path,"rb")) { 
                    //get the file name from the path 
                    $filename = array_pop(explode(chr(92),$full_path)); 
                    $contents = fread($fp,filesize($full_path)); 
                    //encode data 
                    $encoded = base64_encode($contents); 
                    //*****SPLIT THE ENCODED DATA***** 
                    $encoded_split = chunk_split($encoded); 
                    fclose($fp); 
                    $message .= "--$boundary\n"; 
                    $message .= "Content-Type: $anexo_type\n"; 
                    $message .= "Content-Disposition: attachment; filename=\"$anexo_name\" \n"; 
                    $message .= "Content-Transfer-Encoding: base64\n\n"; 
                    $message .= "$encoded_split\n"; 
            } 
            else { 
            echo "Cannot open file$key: $filename"; 
            $ABORT = TRUE; 
            } 
      } 
      else { 
      echo "File$key does not exist: $filename"; 
      $ABORT = TRUE; 
      } 

} 
} 

$message .= "--$boundary--\r\n"; 

$headers = "MIME-Version: 1.0\n"; 
$headers .= "From: $email\r\n"; 
$headers .= "Content-type: multipart/mixed; boundary=\"$boundary\"\r\n"; 


$to = "allison@malicia.com.br"; //----Email para recebimento do form 

$subject = "Formulario do Site"; //---O Assunto pro e-mail 


$mensagem=mail($to, $subject, $message, $headers); 
if ($mensagem) { 
    print "Mensagem enviada!"; 
      
} else { 
    print "O envio da mensagem falhou!"; 
} 

} 


?> 
</body> 
</html>
entaum agora a duvida, eh melhor colocar ele no meio da minha pagina, ou pega faz ele separado e coloca tipo num iframe??

a pagina em kestao eh essa: http://www.cidadegua.../sugestoes.html
dae o form vai ficar na parte branca, eh obvio! :D :P

t+
-----------------------------------------------------------------
Caso resolvido, fiz com iframe mesmo e deu certinho, agora to com duvida no iframe, mas isso eh assunto para um proximo post! :lol:

Edição feita por: pedrokike, 15/03/2004, 11:59.

Pedro.

"Obstáculos são aquelas coisas assustadoras que você vê quando desvia seus olhos de sua meta." Henry Ford

#4 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 14/09/2017, 19:44

Clomid Forum Gratuit cialis Drug Interaction Coumadin Amoxicillin Priligy Sanchez Drago Cialis Farmaco Levitra How To Take Whats Amoxicillin Clavulanate For cialis Cialis Efectos
Levitra 10mg 20mg online pharmacy Cheap Propecia France
Cialis Original Espana Cialis Tadalafil Viagra Sildenafil Buying Human Albendazole
Generique Kamagra 100mg <a href=http://cialtobuy.com>online pharmacy</a> Cheapest Generic Cialis Uk

#5 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 15/09/2017, 04:08

Se Vende Viagra En La Farmacia generic cialis Viagra Petite Annonce Last Long In Bed To Last Longer Tamoxifen Citrate Online No Prescription buy roaccutane online cheap cialis Novolog Flexpen Cost Without Insurance
Medicamento Cialis Generica buy cialis Cialis Composizione
Bogota Colombia Sa Generic Meds 2014 Lowest Price Generic Cialis
Mejor Cialis O Levitra <a href=http://cialtobuy.com>viagra cialis</a> Amoxil Dosage Weight

#6 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 02/10/2017, 13:59

Is Amoxicillin Safe For Children Clobetasol Can I Purchase Website Shop Newark viagra Cialis 2013 Viagra Bei Frau
Cialis Da Banco Order Antabuse Disulfiram Online Generic Secure Ordering Zentel With Overnight Delivery Medicine Store viagra Acheter Cialis 20mg En France Uses For Keflex Propecia For Sale Online
Propecia Hormones Effects Comment Les Mecs Last Longer viagra Baclofene Intoxication Prix De Cialis En Pharmacie En France Amoxicilina Antibiotic Overnight Shipping Cod Only

#7 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 02/10/2017, 16:22

Buy 250 Mg Amoxicillin Online generic levitra online Propecia Doctor Prescription

#8 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 10/10/2017, 14:29

Prix Viagra 50 Mg Pfizer Stendra Erectile Dysfunction Wirral viagra vs cialis vs levitra samples Propecia E Impotencia Causar Discount Doxycycline Online Priligy Farmacias Del Ahorro
Mexican Amoxil online pharmacy Mrsa Zithromax

#9 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 10/10/2017, 17:05

Allopurinol 300 Mg Australia cialis Kamagra Oral Jelly Oder Tabletten Cialis 60 Ans

#10 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 27/10/2017, 17:23

Cephalexin For Dogs Soide Effects Viagra Decouverte viagra Active Ingredient In Maxalt Levitra Sublinguale Prezzo
Cialis Generico India Cephalexin 500 Mg Dosage Cheap Viagra Uk Next Day Delivery cialis buy Female Viagra Buy Synthroid Online Canada Candaian Pharmacies
Propecia Serenoa Repens cialis viagra levitra Prix Du Viagra France En Beziers Google Viagra On Line

#11 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 12/11/2017, 19:45

Propecia Hair Loss Causes Direct Dutasteride Enlarged Prostate Without Perscription Internet cialis Pharmacy Online Usa Propecia Medicine
Kamagra Free Delivery Baclofene Eureka viagra prescription Order Cialis Online India
Cialis Pas Cher France viagra online prescription Viagra Alle Erbe Ultimate Usa Pharmacy Online Viagra

#12 JeffMalm

JeffMalm

    Super Veterano

  • Usuários
  • 12254 posts
  • Sexo:Feminino
  • Localidade:Mount Carey

Posted 10/02/2023, 15:00

Bradford, USA 2022 06 27 13 38 04 azithromycin uti
osta lasix Either 50 mg dose 14 days
The goal of the MINDACT trial is to compare the utility of the 70 gene signature commercial diagnostic test MammaPrint with common clinical pathological criteria determined by modified Adjuvant can you buy cialis online Peak bumetanide excretion rates increased linearly with increasing doses of drug




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq