free flash templates
free flash templates menu free css & photoshop templates menu free flash animation

Go Back   free flash templates forum > Free flash templates
Register Today's Posts Search

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-12-2009, 05:03 PM
dylan
Guest
 
Posts: n/a
Default Contact form

Hello

How i can making for example: e-mail and name required, for my site contact form?
www.noregrenhold.no
thank you
  #2  
Old 07-13-2009, 11:18 AM
freenicetemplates freenicetemplates is offline
Administrator
 
Join Date: Mar 2009
Posts: 507
Default php contact form

You can do something like this at the begining of contact.php :

if (empty($_POST['name']) || empty($_POST['email']) ) {
header("Location: ./index.htm?page=_error_message.htm");
}
__________________
We are always pleased to read you in our guestbook
  #3  
Old 07-13-2009, 06:29 PM
dylan
Guest
 
Posts: n/a
Default

thanks , But i must making new page like: error_masage.htm?
and i have this text in contact.php:header("Location: ./thankyou.htm"); from befor must delet this or?
Wher i must put it? :

<?
$your_email = "post@post.com";
$headers= "From: ".$_POST['name']." <".$_POST['email'].">\r\n";
$headers.='Content-type: text/html; charset=utf-8';
mail($your_email, $_POST['subject'], "
<html>
<head>
<title>Contact Message</title>
</head>
<body>
Kontaktskjema<br><br>
Navn : ".$_POST['name']."<br>
E-post : ".$_POST['email']."<br>
Telefon : ".$_POST['telephone']."<br><br>
Emne : ".$_POST['subject']."<br>
Henvendelse : <br>".$_POST['message']."<br>
</body>
</html>" , $headers);
header("Location: ./thankyou.htm");
?>


can you help me please?
thanx

Last edited by dylan; 07-13-2009 at 06:46 PM.
  #4  
Old 07-14-2009, 11:32 AM
freenicetemplates freenicetemplates is offline
Administrator
 
Join Date: Mar 2009
Posts: 507
Default php contact form

Hi,

You'll find here (sendeail.php) a complete script to send a mail :

http://www.ibdhost.com/contact/

But don't forget to rename your page kontakt.html in kontakt.php.
__________________
We are always pleased to read you in our guestbook
  #5  
Old 07-15-2009, 03:41 PM
dylan
Guest
 
Posts: n/a
Default

Hi
Thanks for your help, but I want me and change the current contact form (template 9 contact form).
is it possible to get help from you?
thank you so much
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:16 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.