Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

GabrielFerrari

[Resolvido] - Envio de formulario de um template

Recommended Posts

Olá pessoal.

 

Estava vendo como funciona os templates do http://www.templatemonster.com/ para ver se compensa em alguns projetos

 

Eles disponibilizam alguns para estudo eu peguei esse aqui para testar o formulario de contato: http://www.templatemonster.com/sample/free...sh_template.zip

 

To desde sexta tentando fazer funcionar mas não ta indo.

 

Obrigado.

 

Caso queiram ver os códigos:

 

 

1º arquivo:

&comp_name1=i
&comp_name2=ntegro
&slogan1=PREMIUM
&slogan2=SERVICE
&copyright=YourCompany.Com © 2006 • <font color="#000000">Privacy Policy </font>
&server_option=php
&recipient=gabriel.ferrari@viqtory.com.br



&link1=<p align="center">main</p>
&link2=<p align="center">company</p>
&link3=<p align="center">services</p>
&link4=<p align="center">solutions</p>
&link5=<p align="center">contacts</p>


&page1=<p align="center"><font color="#E93400">M</font>ain Page </p>
&page2=<p align="center"><font color="#E93400">C</font>ompany </p>
&page3=<p align="center"><font color="#E93400">S</font>ervices </p>
&page4=<p align="center"><font color="#E93400">S</font>olutions </p>
&page5=<p align="center"><font color="#E93400">C</font>ontacts </p>




&main_txt1=Changing the Future
&main_txt2=Lorem ipsum dolor sit amet, consec tetuer adipiscing elit. Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta. Fusce suscipit varius mi. Cum sociis natoque penatibus et <br><br>Dagnis dis parturient montes, <a href="#"><font color="#E93400">nascetur ridiculus mus</font></a>. Nulla dui. Fusce feugiat malesuada odio. Morbi nunc odio, gravida at
&main_txt3=Featured Services
&main_txt4=Market Researches
&main_txt5=Target Marketing
&main_txt6=Lorem ipsum dolor sit amet, consec tetuer adipiscing elit. Praesent vestibu lum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta. Fusce suscipit varius mi. Cum sociis natoque penatibus
&main_txt7=Lorem ipsum dolor sit amet, consec tetuer adipiscing elit. Praesent vestibu lum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta. Fusce suscipit variu
&main_txt8=Customer Says
&main_txt9="Lorem ipsum dolor sit amet, consec tetuer adipiscing elit. Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta. Fusce suscipit varius mi" 
&main_txt10=Paul Robinson, Manager




&company_txt1=Shortly About Us
&company_txt2=Mauris fermentum dictum magna. Sed laoreet aliquam leo. Ut tellus dolor, dapibus eget, elementum vel,  cursus eleifend, elit. Aenean auctor wisi et urna. <br><br>Aliquam erat volutpat. Duis ac turpis. Integer rutrum ante eu lacus. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
&company_txt3=Company Profile 
&company_txt4=Lorem ipsum dolor sit amet, consec tetuer adipiscing elit. Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta. Fusce <a href="#"><font color="#E93400">suscipit varius mi</font></a>. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla dui. Fusce feugiat malesuada odio. Aliquam erat volutpat. Duis ac turpis. Integer rutrum ante eu lacus.<br><br>Morbi nunc odio, gravida at, cursus nec, luctus a, lorem. Maecenas tristique orci ac sem. Duis ultricies pharetra magna. Donec accumsan <a href="#"><font color="#E93400">malesuada orci</font></a>. Donec sit amet eros. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Mauris fermentum dictum magna. Sed laoreet aliquam leo. Ut tellus dolor, dapibus eget, elementum vel, cursus eleifend, elit. Aenean auctor wisi et urna. 
&company_txt5=read more
&company_txt6=Our Workteam
&company_txt7=<font color="#E93400">Stella Franklin</font><br>Maece nas tristique orci ac sem. Duis ultricies pharetra magna. Donec accumsan male.
&company_txt8=<font color="#E93400">Bradley Grosh</font><br>Lorem ipsum dolor sit amet, con sectetuer adipi scing elit. Mauris fermentum dictum



&services_txt1=Services Overview
&services_txt2=Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. 
&services_txt3=<u>Vestibulum iaculis lacinia est</u><br><u>Proin dictum elementum velit</u><br><u>Fusce euismod consequat ante</u> 
&services_txt4=<u>Lorem ipsum dolor sit amet</u><br><u>Consectetuer adipiscing elit</u><br><u>Pellentesque sed dolor</u>
&services_txt5=Special Services
&services_txt6=Morbi nunc odio
&services_txt7=Sed laoreet aliquam
&services_txt8=Praesent vestibu lum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta. Fusce suscipit varius mi. Cum sociis natoque <a href="#"><font color="#E93400">penatibus.</font></a> 
&services_txt9=Quisque nulla. Vestibulum libero nisl, porta vel, scelerisque eget, malesuada at, neque. Vivamus eget nibh. Etiam cursus leo vel metus. <a href="#"><font color="#E93400">Nulla facilisi.</font></a>   
&services_txt10=Services List 
&services_txt11=<u>Aliquam congue fermentum nisl</u><br><u>Mauris accumsan nulla vel diam.</u>
&services_txt12=<u>In pede mi aliquet sit amet</u><br><u>Euismod in auctor ut ligula</u> 



&solutions_txt1=Business Solutions
&solutions_txt2=Duis ac turpis integer rutrum
&solutions_txt3=Quisque nulla. Vestibulum libero
&solutions_txt4=Lorem ipsum dolor sit amet, con sectetuer adipiscing elit. Praesent vestibulum <a href="#"><font color="#E93400">molestie lacus.</font></a> Aenean nonummy hendrerit mauris. Phasellus porta. Fusce suscipit varius mi. 
&solutions_txt5=Phasellus porta. Fusce suscipit varius mi. <a href="#"><font color="#E93400">Cum sociis</font></a> natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla dui. Fusce feugiat malesuada odio. 
&solutions_txt6=read more
&solutions_txt7=Recent Solutions
&solutions_txt8=Duis ac turpis integer rutrum
&solutions_txt9=Quisque nulla. Vestibulum libero
&solutions_txt10=Nulla dui. Fusce feugiat malesuada odio. Morbi nunc odio, gravida at, cursus nec, luctus a, lorem. Maecenas tristique orci ac sem. 
&solutions_txt11=Maecenas tristique orci ac sem. Duis ultricies pharetra magna. Donec accumsan malesuada orci. Donec sit amet eros. Lorem ipsum dolor sit. 




&contacts_txt1=Mailing Address
&contacts_txt2=The Company Name Inc.<br>9863 - 9867 Mill Road, Cambridge, MG09 99HT <br><br>Freephone:  +44 800 559 6580<br>Telephone:   +44 959 603 6035<br>FAX:			+44 101 889 9898   
&contacts_txt3=Contact Form
&contacts_txt4=Praesent vestibu lum molestie lacus. Aenean nonummy hendrerit mauris.
&contacts_txt5=your name:
&contacts_txt6=your company:
&contacts_txt7=telephone:
&contacts_txt8=e-mail:
&contacts_txt9=message:
&contacts_txt10=Our Departments
&contacts_txt11=Customer Service:<br>Telephone:   +44 959 603 6035<br>E-mail:		  <a href="#"><font color="#E93400"><u>customer@company.com</u></font></a><br><br>Support Department:<br>Telephone:   +44 959 603 6035<br>E-mail:		  <a href="#"><font color="#E93400"><u>support@company.com</u></font></a>
&contacts_txt12=Network Planning Service:<br>Telephone:   +44 959 603 6035<br>E-mail:		  <a href="#"><font color="#E93400"><u>network@company.com</u></font></a><br><br>Technical Department:<br>Telephone:   +44 959 603 6035<br>E-mail:		  <a href="#"><font color="#E93400"><u>tech@company.com</u></font></a>
&contacts_txt13=reset
&contacts_txt14=send



&pop_up_title1=Company-read more
&pop_up_txt1=Lorem ipsum dolor sit amet, consec tetuer adipiscing elit. Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta.<br><br>Fusce suscipit varius mi. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla dui.Lorem ipsum dolor sit amet, <br><br><br>Praesent vestibulum molestie lacus.Aenean nonummy hendrerit mauris. Phasellus porta. Fusce suscipit varius mi. Cum sociis

&pop_up_title2=Solutions-read more1
&pop_up_txt2=Lorem ipsum dolor sit amet, consec tetuer adipiscing elit. Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta.<br><br>Fusce suscipit varius mi. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla dui.Lorem ipsum dolor sit amet, <br><br><br>Praesent vestibulum molestie lacus.Aenean nonummy hendrerit mauris. Phasellus porta. Fusce suscipit varius mi. Cum sociis

&pop_up_title3=Solutions-read more2
&pop_up_txt3=Lorem ipsum dolor sit amet, consec tetuer adipiscing elit. Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta.<br><br>Fusce suscipit varius mi. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla dui.Lorem ipsum dolor sit amet, <br><br><br>Praesent vestibulum molestie lacus.Aenean nonummy hendrerit mauris. Phasellus porta. Fusce suscipit varius mi. Cum sociis

&pop_up_title4=Solutions-read more3
&pop_up_txt4=Lorem ipsum dolor sit amet, consec tetuer adipiscing elit. Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta.<br><br>Fusce suscipit varius mi. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla dui.Lorem ipsum dolor sit amet, <br><br><br>Praesent vestibulum molestie lacus.Aenean nonummy hendrerit mauris. Phasellus porta. Fusce suscipit varius mi. Cum sociis

&pop_up_title5=Solutions-read more4
&pop_up_txt5=Lorem ipsum dolor sit amet, consec tetuer adipiscing elit. Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta.<br><br>Fusce suscipit varius mi. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla dui.Lorem ipsum dolor sit amet, <br><br><br>Praesent vestibulum molestie lacus.Aenean nonummy hendrerit mauris. Phasellus porta. Fusce suscipit varius mi. Cum sociis

&pop_up_title6=Privacy Policy
&pop_up_txt6=Pellentesque sed dolor. Aliquam congue fermentum nisl. Mauris accumsan nulla vel diam. Sed in lacus ut enim adipiscing aliquet. Nulla venenatis. In pede mi, aliquet sit amet, euismod in,auctor ut, ligula. Aliquam dapibus tincidunt metus. Praesent justo dolor, lobortis quis, lobortis dignissim, pulvinar ac, lorem. Vestibulum sed ante. Donec sagittis euismod purus.Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam,eaque ipsa quae ab illo inventore.<br><br><br>Veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet,nsectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam.<br><br><br>Ut tellus dolor, dapibus eget, elementum vel, cursus eleifend, elit. Aenean auctor wisi et urna. Aliquam erat volutpat. Duis ac turpis. Donec sit amet eros. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Mauris fermentum dictum magna. Sed laoreet aliquam leo. Ut tellus dolor, dapibus eget, elementum vel, cursus eleifend, elit. Aenean auctor wisi et urna. Aliquam erat volutpat. Duis ac turpis. Integer rutrum ante eu lacus.Vestibulum libero nisl, porta vel, scelerisque eget, malesuada at, neque.<br><br><br><a href="#"><font color="#E93400"><u>privacy@companyname.com</u></font></a> 


&url1=http://www.yourcompany.com
&url2=http://www.yourcompany.com
&url3=http://www.yourcompany.com
&url4=http://www.yourcompany.com
&url5=http://www.yourcompany.com
&url6=http://www.yourcompany.com
&url7=http://www.yourcompany.com
&url8=http://www.yourcompany.com
&url9=http://www.yourcompany.com
&url10=http://www.yourcompany.com
&url11=http://www.yourcompany.com
&url12=http://www.yourcompany.com
&url13=http://www.yourcompany.com
&url14=http://www.yourcompany.com
&url15=http://www.yourcompany.com
&url16=http://www.yourcompany.com
&url17=http://www.yourcompany.com
&url18=http://www.yourcompany.com
&url19=http://www.yourcompany.com
&url20=http://www.yourcompany.com
&url21=http://www.yourcompany.com
&url22=http://www.yourcompany.com
&url23=http://www.yourcompany.com
&url24=http://www.yourcompany.com
&url25=http://www.yourcompany.com
&url26=http://www.yourcompany.com
&url27=http://www.yourcompany.com
&url28=http://www.yourcompany.com
&url29=http://www.yourcompany.com
&url30=http://www.yourcompany.com

2º arquivo:

 

<?
Error_Reporting(E_ALL & ~E_NOTICE);

 while ($request = current($_REQUEST)) {
 	if (key($_REQUEST)!='recipient') {
		$pre_array=split ("&777&",  $request);
		$post_vars[key($_REQUEST)][0]=$pre_array[0];
		$post_vars[key($_REQUEST)][1]=$pre_array[1];
	}
	next($_REQUEST);
}



reset($post_vars);


$subject="From ".$post_vars['your_name'][0];
$headers= "From: ".$post_vars['your_email'][0] ."\n";
 $headers.='Content-type: text/html; charset=iso-8859-1';
 $message='';
  while ($mess = current($post_vars)) {
	  if ((key($post_vars)!="i") && (key($post_vars)!="your_email") && (key($post_vars)!="your_name")) {

	 	$message.="<strong>".$mess[1]."</strong>   ".$mess[0]."<br>";
	}
	next($post_vars);
 }

mail($_REQUEST['recipient'], $subject,  "
<html>
<head>
 <title>Contact letter</title>
</head>
<body>
<br>
  ".$message."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");

?>
<script>
	resizeTo(300, 300);
</script>

Compartilhar este post


Link para o post
Compartilhar em outros sites

Meu grande amigo Thelon, fazendo uma visita na área do PHP ! (e já encomodando <_<) aushuahsuahs

 

 

Thelon, aparece algum erro quando tu tenta executar ? ou a mensagem não chega ?

Compartilhar este post


Link para o post
Compartilhar em outros sites

E ai Alaete já tava com saudades :P

 

Eu gosto de PHP sempre dou uma estudada nas horas vagas.

 

Ele não da erro nenhum pelo contrario ainda aparece que o e-mail foi enviado com sucesso mas ele não chega para mim.

 

link: http://thelon.t35.com/site_flash/index.html

 

estou usando este servidor para teste: http://freehostcp.t35.com

 

não sei se pode ser ele também não entendo muito disso.

 

Obrigado ;)

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.