Jump to content


Photo

Enviar Arquivo Por Formulário


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

#1 doriprata

doriprata

    12 Horas

  • Usuários
  • 155 posts
  • Sexo:Não informado
  • Localidade:Campo Largo

Posted 07/06/2006, 10:26

Estou com um probleminha. Preciso colocar um formulário num site e neste formulário precisa ter um campo onde a pessoa vai poder escolher um arquivo do seu pc e mandar através do formulário. lembrando que este formulário será enviado para um email determinado.
já tenho o código do formulário aqui prontinho, funcionando todos os outros campos, só não sei como fazer este campo para "anexar" o arquivo.
Por favor, alguém poderia me ajudar ?? :unsure:

#2 Klaus

Klaus

    @ ubuntu jaunty

  • Ex-Admins
  • 7924 posts
  • Sexo:Masculino
  • Localidade:127.0.0.1

Posted 07/06/2006, 11:29

<input type="file" />

Klaus Paiva
Conheça também: Taperás

#3 doriprata

doriprata

    12 Horas

  • Usuários
  • 155 posts
  • Sexo:Não informado
  • Localidade:Campo Largo

Posted 08/06/2006, 15:38

hmmm, ok, apareceu o campo no form mesmo mas agora estou com outra duvida, como tenho que fazer no codigo que esta em um arquivo chamdo formulario.php ? como devo configurar ele para que o arquivo seja anexado ao email ? bom, vou colocar o codigo aqui pra vcs verem:

<?php

$nome = $HTTP_POST_VARS["nome"];
$cidade = $HTTP_POST_VARS["cargo"];
$estado = $HTTP_POST_VARS["email"];
$telefone = $HTTP_POST_VARS["idade"];
$email = $HTTP_POST_VARS["telefone"];
$assunto = $HTTP_POST_VARS["descricao"];
$mensagem = $HTTP_POST_VARS["arquivo"];

$headers = "From: $nome <$email>\n";
$headers .= "Return-Path: <$email>\n";
$headers .= "X-Sender: <$email>\n";
$headers .= "X-Mailer: IE / IE 6.2.3\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";

$html = "
<html>
<body bgcolor='#FFFFFF'>
<br>
<font color='#FF6600'><strong>Alumínios O Melhor</strong></font> <br>
<br>
<font color='#FF6600'>Este e-mail foi gerado apartir do preenchimento do formulário no site bla, bla, bla</font>
<br><br>
<font color='#000000'><strong>Nome:	 </strong></font><font color='#FF6600'> $nome	   </font><br>
<font color='#000000'><strong>Cidade:   </strong></font><font color='#FF6600'> $cargo	  </font><br>
<font color='#000000'><strong>Estado:   </strong></font><font color='#FF6600'> $email	  </font><br>
<font color='#000000'><strong>Telefone: </strong></font><font color='#FF6600'> $idade	  </font><br>
<font color='#000000'><strong>E-mail:   </strong></font><font color='#FF6600'> $telefone   </font><br>
<font color='#000000'><strong>Assunto:  </strong></font><font color='#FF6600'> $descricao  </font><br>
</body>
</html>
";

mail ("blablabla@gmail.com", $assunto, $html, $headers);
header ("Location: obrigado.php");
?>

alguém pode dar um help ??? :unsure:

Edição feita por: doriprata, 08/06/2006, 15:40.


#4 Alex Hiroshi

Alex Hiroshi

    Super Veterano

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

Posted 09/06/2006, 02:56

http://forum.wmonlin...howtopic=121218
Fórum WMO - Equipe de Desenvolvimento / Banco de Dados - Ex-Administrador

#5 RonsisM

RonsisM

    Super Veterano

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

Posted 24/09/2017, 21:01

Amoxicillin Next Day Shipping cialis Cheap Female Viagra Buying Amoxicillin Mail Order Predsion

#6 RonsisM

RonsisM

    Super Veterano

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

Posted 08/10/2017, 19:37

Cialis Wirkung Nebenwirkung Mod112 Cialis Prezzo Farmacia online pharmacy Cialis E Assuefazione
Baclofene Quel Dosage general pharmacy levitra Price For Cephalexin
Buying Legal Tamoxifin Effetti Cialis 10 viagra prescription Cialis 20 Mg Foro
36 Hour Cialis Online viagra Levitra Vendita On Line Buy Generic Celebrex Online Priligy Suomi
Buy Safe Cialis Isotretinoin With Overnight Delivery viagra Free Viagra Pills In Reading Pa. Cialis 200 Mg India
Cash On Delivery Levaquin viagra Accutane Without A Perscription isotretinoin shop Propecia Primario

#7 HaroNism

HaroNism

    Super Veterano

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

Posted 08/10/2017, 21:36

Zithromax Azithromycin Tablets How To Use Levitra buy levitra online Cephalexin Online Pharmacy

#8 FrankCaulk

FrankCaulk

    12 Horas

  • Usuários
  • 163 posts
  • Sexo:Masculino
  • Localidade:Karakol

Posted 08/10/2017, 22:58

hwsjhoa http://www.allo-pael...e-nylon-744.htmhttp://www.amomu.fr/...ry-avis-731.asp Sac De Voyage Longchamp HommeNew Balance Bleu Femme Pas CherBasket Adidas Femme Bleu Et RoseNike Air Max 1 Ultra Essential Pas CherBasket Homme Armani 2017
xmzmftq

http://www.as-assain...e-femme-595.php
http://www.autoankau...lace-up-644.php
http://www.or-design...amazon-923.html
http://www.or-design...-homme-383.html
http://www.chokolosk...as-cher-151.php

Nike Flyknit Racer
Nike Sb Janoski Blanche Homme
Sneaker Dolce Gabbana Solde
Salomon Xt Wings 3 Soldes
Adidas Zx Flux Bleu Blanc
fmqgjis

http://www.pennywise...-v-sage-278.php
http://www.corsica-s...t-tods-939.html
http://www.as-assain...chassis-811.php
http://www.auto-lois...me-noir-292.php
http://www.divland-g...l-noir-638.html

Portefeuille Michael Kors Rouge
Nike Presto Flyknit Femme Noir
Polo Fred Perry Manche Longue
Reebok Chaussure Crossfit
Mocassin Tod's Femme Solde
wgcayqx

http://www.auberge-b...arpins-236.html
http://www.aroundthe...ike-or-rose.php
http://www.lerevedag...et-noir-609.htm
http://www.trioelegi...-yeezy-835.html
http://www.lacharlyb...omme-47-789.php

Air Force Basse Rose
Louis Vuitton Femme Sac
Palladium Rouge Homme
Air Max 95 Prix Maroc
Gazelle Bordeaux Pas Cher
sfjdums

http://www.denishirs...t-rose-955.html
http://www.gite-beau...er-1084-462.php
http://www.palisso.f...ette-femme.html
http://www.full-web....-haute-106.html
http://www.dojodulac...-femme-697.html

Yeezy Femme 350
Adidas Violette Femme
Chaussure De Foot Pas Cher Mercurial
Adidas 16 Purecontrol
Ray Ban Erika Braun

#9 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 13201 posts

Posted 09/10/2017, 03:05

Purchase Effexor Online Baclofene Amm vardenafil bestellen Usa Propecia Cheap On Line Macrobid Secure Mastercard Cod Overseas Fluoxetine Bioxetin

#10 RonsisM

RonsisM

    Super Veterano

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

Posted 23/10/2017, 05:09

Viagra Wirkung Medicament Lioresal viagra Free Dysfunction Samples Priligy Online Kaufen Ohne Rezept

#11 RonsisM

RonsisM

    Super Veterano

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

Posted 05/11/2017, 01:38

Buy Synthroid Levothyroxine Online Uk Online cialis generika kaufen vardenafil cheap No Rx Online Pharmacy
Propecia Buy Prescription viagra L Thyroxin Ohne Rezept Bestellen
Pastillas De Viagra Cialis Generic Levitra Viagra viagra Cialis 20 Mg Costo

#12 RonsisM

RonsisM

    Super Veterano

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

Posted 27/11/2017, 18:53

Viagra Indien Bestellt On Line Clobetasol Get No Prescription Needed Cheapeast cialis buy online Retin Buying Macrobid 100mg Cialis Without Perscription
Acheter Viagra Nord buy cialis Propecia Salud
Buy Propecia Paypal generic levitra on line Comment Durer Plus Longtemps Au Lit




1 user(s) are reading this topic

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

IPB Skin By Virteq