Ovako, spetljao sam se u kontakt formularu. Skinio sam css temu preradio u sajt ali mi ne radi kontakt forma. Imao sam 2 fajla, contact.html i contact.php. Contact.html sam preimenovao u kontakt.html kao i php fajl i kontakt.php Na 2 mesta sam promenio contact.php sa kontakt.php i....ne radi. Kasnije sam vratio na staro, ali opet nista.
Evo koda od tih fajlova, bicu veoma zahvalan ako neku bude znao da mi kaze sta da ispravim.
Ovo je contact.php
<?php
$submit=$_POST['Submit'];
if($submit == Submit){
$status = "OK";
$email=$_POST['email'];
$message=$_POST['message'];
$subject=$_POST['subject'];
$name=$_POST['name'];
$company=$_POST['company'];
$msg="";
$msgerror="";
//error_reporting(E_ERROR | E_PARSE | E_CORE_ERROR);
if ( strlen($name) < 1 ){
$msgerror=$msgerror."* Niste upisali Vase ime<BR />";
$status= "NOTOK";}
if ( strlen($message) < 5 ){
$msgerror=$msgerror."* Morate napisati minimum 5 reci.<BR/>";
$status= "NOTOK";}
if (!stristr($email,"@") OR !stristr($email,".")) {
$msgerror=$msgerror."* Niste upisali tacnu mail adresu.<BR />";
$status= "NOTOK";}
if($status=="OK"){// echo $query;
$headers="";
$headers4="info@montaznekuceivanjica.com"; // Change this address within quotes to your address //
$headers.="Reply-to: $headers4\n";
$headers .= "From: $headers4\n";
$headers .= "Errors-to: $headers4\n";
$headers = "Content-Type: text/html; charset=iso-8859-1\n".$headers;
mail($headers4,$subject,"Contactus <BR>
Name :$name
<BR>Email:$email
<br>Company:$company
<br>Message: $message","$headers");
$msg="Hvala Vam na mailu. Odgovaricemo vam u najkracem roku..";
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!--[if IE 6]>
<script type='text/javascript' src='js/dd_belated_png.js'></script>
<script>DD_belatedPNG.fix('.pngfix');</script>
<![endif]-->
<title>Montazne kuce Ivanjica - Kontakt</title>
<link rel="stylesheet" type="text/css" media="all" href="css/reset.css" />
<link rel="stylesheet" type="text/css" media="all" href="css/960.css" />
<link rel="stylesheet" type="text/css" media="all" href="css/style.css" />
<!-- Start menu css and js files here -->
<link rel="stylesheet" type="text/css" href="css/superfish.css" media="screen" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/hoverIntent.js"></script>
<script type="text/javascript" src="js/superfish.js"></script>
<script type="text/javascript">
// initialise plugins
jQuery(function(){
jQuery('ul.sf-menu').superfish();
});
</script>
<!-- End menu css and js files here -->
</head>
<body>
<div class="subbg">
<div class="subheader">
<!--start:header -->
<div class="container_16">
<!--start:header container -->
<!--start:logo -->
<div class="grid_5">
<img src="images/logo.png" alt="DesignPlus" class="pngfix logo"/>
</div>
<!--end:logo -->
<div class="grid_11">
<!--start:menu grid -->
<div class="top-menu pngfix">
<!--start:top-menu -->
<ul class="sf-menu">
<!--start:sf-menu -->
<li> <a href="index.html">Naslovna</a> </li>
<li> <a href="onama.html">O nama</a> </li>
<li> <a href="tipovimontaznihkuca.html">Tipovi kuca</a>
</li>
<li> <a href="konstrukcija.html">Konstrukcija</a>
<!--end:dropdown -->
</li>
<li> <a href="blog.html">Blog</a> </li>
<li class="current"> <a href="kontakt.html">Kontakt</a> </li>
</ul>
<!--end:sf-menu -->
<span class="rightcorner pngfix"></span> </div>
<!--end:top-menu -->
</div>
<!--end:menu grid -->
<div class="grid_16">
<!--start:subtitle grid -->
<div class="subtitle">
<!--start:subtitle -->
<h1><b>Montazne kuce Ivanjica</b></h1>
<p>Gradimo montazne kuce onako kako vi to zelite !!!</p>
</div>
<!--end:subtitle -->
</div>
<!--end:subtitle grid -->
</div>
<!--end:header container -->
</div>
</div>
<!--end:header -->
<div class="clear"> </div>
<div class="container_16">
<!--start:content container -->
<div class="grid_11 sepline">
<!--start:left content-->
<div class="box-content">
<!--start:box-content -->
<h2>Montazne kuce Ivanjica - Kontakt strana</h2>
<p>Za sva pitanja, predloge ili sugestije, popunite kontakt formular ili nas pozovite telefonom.<b></b></p>
<p><b>Odgovoricemo vam u najkracem mogucem roku.</b></p>
<br />
<!-- Start Contact Form -->
<form action="contact.php" method="post" name="form1" id="form1" class="contactform" style="margin:0px; width:200px; ">
<p>Ime i Prezime *:
<input type='text' value='' size='50' maxlength='50' name='name' class='txtarea required'/>
</p>
<p>Vas e-mail *:
<input name="email" type="text" size='50' id="from" value="" class="required" />
</p>
<p>Ime firme :
<input type='text' value='' size='50' maxlength='50' name='company'/>
</p>
<p>Naslov :
<input name="subject" type="text" id="subject" size='50' value=""/>
</p>
<p>Poruka *:
<textarea name="message" cols="38" rows="5" id="message"></textarea>
</p>
<p>
<input name="submit" class="" type="image" src="images/submit.gif" value="Send Message" />
</p>
</form>
<br />
</div>
<!--end:box-content -->
</div>
<!--end:left content-->
<div class="grid_5">
<!--start:right content-->
<div class="box-content">
<!--start:box-content -->
<h4><img src="images/contactus.png" alt="google_map" width="194" height="135" class="img_border" /> </h4>
<h4>Telefoni:</h4>
<p>Predstavnistvo u Beogradu</p>
<p>Ul. Beranska 13 N, Banjica, 11 000 Beograd</p>
<p>Tel 1: 065/699-88-88</p>
<p> </p>
<p>Ivanjica - Proizvodnja i prodaja</p>
<p>Javorska 103, 32250 Ivanjica</p>
<p>Tel 1: 064/210-95-73</p>
<p>Tel 2: 032/665-445</p>
<br />
<h4>E-mail</h4>
<a href="mailto:info@montaznekuceivanjica.com">info@montaznekuceivanjica.com</a> <br />
<h4> </h4>
<h4>Skype</h4>
<p>dusan.vojinovic</p>
</div>
<!--end:box-content -->
</div>
<!--end:right content-->
</div>
<!--end:content container -->
<div class="clear"></div>
<!-- End middle content -->
<div class="footer">
<!--start:footer -->
<div class="container_16">
<!--start:footer container -->
<div class="footer_left">
<!--start:footer left part-->
<p> © Montazne kuce Ivanjica 2011. Sva prava zadrzana.<a href="#"></a></p>
</div>
<!--start:footer left part-->
<div class="footer_right">
<!--start:footer right part-->
<p>Designed and Developed by<a href="http://www.themeflash.com" target="_blank"></a></p>
</div>
<!--end:footer right part-->
</div>
<!--end:footer container -->
</div>
<!--end:footer -->
</body>
</html>
Evo i kontakt.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="description" content="Montazne kuce Ivanjica - Gradimo montazne kuce onako kako vi to zelite. " />
<meta name="keywords" content="montazne, kuce, ivanjica, montazna, kuca, izgradnja, montaznih, kuca" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Montazne kuce Ivanjica - Kontakt</title>
<link rel="stylesheet" type="text/css" media="all" href="css/reset.css" />
<link rel="stylesheet" type="text/css" media="all" href="css/960.css" />
<link rel="stylesheet" type="text/css" media="all" href="css/style.css" />
<!-- Start menu css and js files here -->
<link rel="stylesheet" type="text/css" href="css/superfish.css" media="screen" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/hoverIntent.js"></script>
<script type="text/javascript" src="js/superfish.js"></script>
<script type="text/javascript">
// initialise plugins
jQuery(function(){
jQuery('ul.sf-menu').superfish();
});
</script>
<!-- End menu css and js files here -->
<!--[if IE 6]>
<script type='text/javascript' src='js/dd_belated_png.js'></script>
<script>DD_belatedPNG.fix('.pngfix');</script>
<![endif]-->
</head>
<body>
<div class="subbg">
<div class="subheader">
<!--start:header -->
<div class="container_16">
<!--start:header container -->
<!--start:logo -->
<div class="grid_5">
<img src="images/logo.png" alt="DesignPlus" class="pngfix logo"/>
</div>
<!--end:logo -->
<div class="grid_11">
<!--start:menu grid -->
<div class="top-menu pngfix">
<!--start:top-menu -->
<ul class="sf-menu">
<!--start:sf-menu -->
<li> <a href="index.html">Naslovna</a> </li>
<li> <a href="onama.html">O nama</a> </li>
<li> <a href="tipovimontaznihkuca.html">Tipovi kuca</a>
</li>
<li> <a href="konstrukcija.html">Konstrukcija</a>
</li>
<li> <a href="blog.html">Blog</a> </li>
<li class="current"> <a href="kontakt.html">Kontakt</a> </li>
</ul>
<!--end:sf-menu -->
<span class="rightcorner pngfix"></span> </div>
<!--end:top-menu -->
</div>
<!--end:menu grid -->
<div class="grid_16">
<!--start:subtitle grid -->
<div class="subtitle">
<!--start:subtitle -->
<h1>Montazne kuce Ivanjica</h1>
<p>Gradimo montazne kuce onako kako vi to zelite !!!</p>
</div>
<!--end:subtitle -->
</div>
<!--end:subtitle grid -->
</div>
<!--end:header container -->
</div></div>
<!--end:header -->
<div class="clear"> </div>
<div class="container_16">
<!--start:content container -->
<div class="grid_11 sepline">
<!--start:left content-->
<div class="box-content">
<!--start:box-content -->
<h2>Kontaktirajte nas !</h2>
<p>Za sva vasa pitanja, savete, primedbe, sugestije, pisite nam.</p>
<p><b>Odgovoricemo vam u najkracem mogucem roku.</b></p>
<br />
<!-- Start Contact Form -->
<form action="contact.php" method="post" name="form1" id="form1" style="margin:0px; font:Normal 12px Arial,Tahoma, Verdana, Helvetica, sans-serif;width:200px; color:#000;">
<p>Vase ime i prezime*:
<input type='text' value='' size='50' maxlength='50' name='name' class='txtarea required'/>
</p>
<p>Vas e-mail *:
<input name="email" type="text" size='50' id="from" value="" class="required" />
</p>
<p>Ime kompanije :
<input type='text' value='' size='50' maxlength='50' name='company'/>
</p>
<p>Naslov :
<input name="subject" type="text" id="subject" size='50' value=""/>
</p>
<p>Poruka *:
<textarea name="message" cols="38" rows="5" id="message"></textarea>
</p>
<p>
<input name="submit" class="" type="image" src="images/submit.gif" value="Send Message" />
</p>
</form>
<br />
</div>
<!--end:box-content -->
</div>
<!--end:left content-->
<div class="grid_5">
<!--start:right content-->
<div class="box-content">
<!--start:box-content -->
<img src="images/contactus.png" alt="google_map" width="194" height="135" class="img_border" />
<h4>Telefoni:</h4>
<p>Predstavnistvo u Beogradu</p>
<p>Ul. Beranska 13 N, Banjica, 11 000 Beograd</p>
<p>Tel 1: 065/699-88-88</p>
<p> </p>
<p>Ivanjica - Proizvodnja i prodaja</p>
<p>Javorska 103, 32250 Ivanjica</p>
<p>Tel 1: 064/210-95-73</p>
<p>Tel 2: 032/665-445</p>
<br />
<h4>E-mail</h4>
<a href="mailto:info@montaznekuceivanjica.com">info@montaznekuceivanjica.com</a>
<br />
<h4> </h4>
<h4>Skype</h4>
<p>dusan.vojinovic</p>
<br />
</div>
<!--end:box-content -->
</div>
<!--end:right content-->
</div>
<!--end:content container -->
<div class="clear"></div>
<!-- End middle content -->
<div class="footer">
<!--start:footer -->
<div class="container_16">
<!--start:footer container -->
<div class="footer_left">
<!--start:footer left part-->
<p> © Montazne kuce Ivanjica 2011. Sva prava zadrzana </p>
</div>
<!--start:footer left part-->
<div class="footer_right">
<!--start:footer right part-->
<p>Designed and Developed by</p>
</div>
<!--end:footer right part-->
</div>
<!--end:footer container -->
</div>
<!--end:footer -->
</body>
</html>
|