offline
- Boske_KG
- Ugledni građanin
- Tomica
- Komitet za bezbednost saobraćaja
- Pridružio: 22 Jun 2006
- Poruke: 430
- Gde živiš: Kragujevac
|
@Bug-X
Skinuo sam ovaj tvoj kontakt obrazac...
Veoma je dobar.Ali imam jedan problem....
Pokuso sam da ga prepravim kako meni odgovara,sve sam dobro odradio samo nece da posalje poruku na email adresu koji sam postavio
Citat:$recipient = "tomicakg@gmail.com";
u pocetku,a posle je doslo do neke greske
Moj kontakt obrazac Izgleda ovako
web-form.htm
Citat:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Kontakt Obrazac KgCafe</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style9 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #FF0000;
}
a:link {
color: #0000FF;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #0000FF;
}
a:hover {
text-decoration: none;
color: #330066;
}
a:active {
text-decoration: none;
color: #0000FF;
}
body {
background-color: #F4F4F4;
}
.style10 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
.style12 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; }
-->
</style>
</head>
<body>
<form action="form-send.php" method="post">
<table width="400" border="0" align="center" cellpadding="5" cellspacing="0">
<tr valign="top">
<td colspan="2"><div align="center"><span class="style9">Popunite obrazac za kontakt. </span></div></td>
<td colspan="2" rowspan="12"> </td>
</tr>
<tr valign="top">
<td width="152" class="style10"><div align="center"><span class="style12">Vase Ime :</span></div></td>
<td width="226"><input name="ime" type="text" id="ime"></td>
</tr>
<tr valign="top">
<td width="152" class="style10"><div align="center"><span class="style12">Email : </span></div></td>
<td width="226"><p>
<input name="mail" type="text" id="mail">
</p></td>
</tr>
<tr valign="top">
<td width="152" class="style10"><div align="center"><span class="style12">Naslov : </span></div></td>
<td width="226"><input name="naslov" type="text" id="naslov"></td>
</tr>
<tr valign="top">
<td width="152" class="style10"><div align="center"><span class="style12">Poruka : </span></div></td>
<td><p>
<textarea name="poruka" cols="35" rows="4" id="comments"></textarea>
</p></td>
</tr>
<tr valign="top">
<td colspan="2"><span class="style10"><strong>*</strong> Obavezno Popunite sva polja.<br>
<strong>*</strong> Molimo vas nemojte slati Poruke Uvredljivog Karaktera.<br>
<strong>*</strong> KgCafe Team vam odgovara na poruku u roku 24h od casa slanja poruke.<br>
<strong>*</strong> Molimo vas da vasa poruka bude lepo i citko ispisana kako bi vam mogli da odgovorimo n anju!!!.</span></td>
</tr>
<tr>
<td colspan="4"><div align="center">
<div align="center">
<input type="submit" name="Submit" value="Posalji Poruku">
<input name="Reset" type="reset" id="Reset" value="Ponisti Poruku">
</div>
</div>
</tr>
</table>
</form>
</body>
</html>
i form-send.php
Citat:<?php
$fp = fopen("rezultat.txt", "a");
fwrite($fp, $_POST['ime'] . "," .
$_POST['mail'] . "," .
$_POST['naslov'] . "," .
$_POST['poruka'] . "," .
fclose($fp);
$recipient = "tomicakg@gmail.com";
$subject = "Poruka sa Sajta KgCafe";
$forminfo =
($_POST['ime'] . "\r" .
$_POST['mail'] . "\r" .
$_POST['naslov'] . "\r" .
$_POST['poruka'] . "\r" .
$formsend = mail("$recipient", "$subject", "$forminfo", "From: $email\r\nReply-to:$email");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>succesfuly</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style2 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; }
body {
background-color: #F4F4F4;
}
.style3 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #0000FF;
}
.style4 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #0000FF; font-style: italic; }
.style5 {font-style: italic}
-->
</style>
</head>
<body>
<table width="400" border="0" cellspacing="0" cellpadding="5">
<tr>
<td> <p align="center" class="style3">Poruka Uspesno Poslata !!! </p>
<p align="center" class="style2"><strong>*</strong>Molimo vas sacekajte dok vam se nejavi neki od Administratora.Vreme cekanja je najkasnije 24h od casa poslate poruke.<strong>*</strong><br>
</p>
<p align="left" class="style2"><span class="style5"><strong>*Vasi podatci su sledeci :</strong></span><br>
<? echo nl2br($forminfo); ?></p>
<p align="center" class="style4">Klikni <a href="http://www.Kragujevac-cafe.com">ovde</a> i vrati se na pocetnu stranu. </p>
</tr>
</table>
<p align="center"></p>
</td>
</body>
</html>
Greska za ovu stranicu je :
Citat:Parse error: parse error, unexpected ';' in /home/www/kragujevac-cafe.com/forma/form-send.php on line 7
a line 7 je :
Citat:fclose($fp);
rezultat.txt permission 777 CHMOD - uradio sam
Ostalo nista nisma diro...
NAPOMENA:
radi se o kontakt skripti Korisnika Bug-X.
Ukoliko sam nesta pogresio neka me neko ispravi ili ako neko zna u cemu j eproblem neka mi kaze...
Unapred Hvala!!!!
Dopuna: 28 Okt 2007 22:49
@Bug-X
Skinuo sam ovaj tvoj kontakt obrazac...
Veoma je dobar.Ali imam jedan problem....
Pokuso sam da ga prepravim kako meni odgovara,sve sam dobro odradio samo nece da posalje poruku na email adresu koji sam postavio
Citat:$recipient = "tomicakg@gmail.com";
Moj obrazac Izgleda ovako
web-form.htm
Citat:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Kontakt Obrazac KgCafe</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style9 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #FF0000;
}
a:link {
color: #0000FF;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #0000FF;
}
a:hover {
text-decoration: none;
color: #330066;
}
a:active {
text-decoration: none;
color: #0000FF;
}
body {
background-color: #F4F4F4;
}
.style10 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
.style12 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; }
-->
</style>
</head>
<body>
<form action="form-send.php" method="post">
<table width="400" border="0" align="center" cellpadding="5" cellspacing="0">
<tr valign="top">
<td colspan="2"><div align="center"><span class="style9">Popunite obrazac za kontakt. </span></div></td>
<td colspan="2" rowspan="12"> </td>
</tr>
<tr valign="top">
<td width="152" class="style10"><div align="center"><span class="style12">Vase Ime :</span></div></td>
<td width="226"><input name="ime" type="text" id="ime"></td>
</tr>
<tr valign="top">
<td width="152" class="style10"><div align="center"><span class="style12">Email : </span></div></td>
<td width="226"><p>
<input name="mail" type="text" id="mail">
</p></td>
</tr>
<tr valign="top">
<td width="152" class="style10"><div align="center"><span class="style12">Naslov : </span></div></td>
<td width="226"><input name="naslov" type="text" id="naslov"></td>
</tr>
<tr valign="top">
<td width="152" class="style10"><div align="center"><span class="style12">Poruka : </span></div></td>
<td><p>
<textarea name="poruka" cols="35" rows="4" id="comments"></textarea>
</p></td>
</tr>
<tr valign="top">
<td colspan="2"><span class="style10"><strong>*</strong> Obavezno Popunite sva polja.<br>
<strong>*</strong> Molimo vas nemojte slati Poruke Uvredljivog Karaktera.<br>
<strong>*</strong> KgCafe Team vam odgovara na poruku u roku 24h od casa slanja poruke.<br>
<strong>*</strong> Molimo vas da vasa poruka bude lepo i citko ispisana kako bi vam mogli da odgovorimo n anju!!!.</span></td>
</tr>
<tr>
<td colspan="4"><div align="center">
<div align="center">
<input type="submit" name="Submit" value="Posalji Poruku">
<input name="Reset" type="reset" id="Reset" value="Ponisti Poruku">
</div>
</div>
</tr>
</table>
</form>
</body>
</html>
i form-send.php
Citat:<?php
$fp = fopen("rezultat.txt", "a");
fwrite($fp, $_POST['ime'] . "," .
$_POST['mail'] . "," .
$_POST['naslov'] . "," .
$_POST['poruka'] . "," .
fclose($fp);
$recipient = "tomicakg@gmail.com";
$subject = "Poruka sa Sajta KgCafe";
$forminfo =
($_POST['ime'] . "\r" .
$_POST['mail'] . "\r" .
$_POST['naslov'] . "\r" .
$_POST['poruka'] . "\r" .
$formsend = mail("$recipient", "$subject", "$forminfo", "From: $email\r\nReply-to:$email");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>succesfuly</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style2 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; }
body {
background-color: #F4F4F4;
}
.style3 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #0000FF;
}
.style4 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #0000FF; font-style: italic; }
.style5 {font-style: italic}
-->
</style>
</head>
<body>
<table width="400" border="0" cellspacing="0" cellpadding="5">
<tr>
<td> <p align="center" class="style3">Poruka Uspesno Poslata !!! </p>
<p align="center" class="style2"><strong>*</strong>Molimo vas sacekajte dok vam se nejavi neki od Administratora.Vreme cekanja je najkasnije 24h od casa poslate poruke.<strong>*</strong><br>
</p>
<p align="left" class="style2"><span class="style5"><strong>*Vasi podatci su sledeci :</strong></span><br>
<? echo nl2br($forminfo); ?></p>
<p align="center" class="style4">Klikni <a href="http://www.Kragujevac-cafe.com">ovde</a> i vrati se na pocetnu stranu. </p>
</tr>
</table>
<p align="center"></p>
</td>
</body>
</html>
Greska za ovu stranicu je :
Citat:Parse error: parse error, unexpected ';' in /home/www/kragujevac-cafe.com/forma/form-send.php on line 7
a line 7 je :
Citat:fclose($fp);
rezultat.txt permission 777 CHMOD - uradio sam
Ostalo nista nisma diro...
NAPOMENA:
radi se o kontakt skripti Korisnika Bug-X.
Ukoliko sam nesta pogresio neka me neko ispravi ili ako neko zna u cemu j eproblem neka mi kaze...
Unapred Hvala!!!!
|