Znalazłem w necie fajny formularz kontaktowy i chciałbym go dodać do strony. Niestety nie znam PHP a trzeba to "coś" zmodyfikować, żeby maile docierały na wybrany adres.
Zatem "How to...?"
PHP:
HTML:
Zatem "How to...?"
PHP:
<?php
//declare our assets
$name = stripcslashes($_POST['name']);
$emailAddr = stripcslashes($_POST['email']);
$comment = stripcslashes($_POST['message']);
$subject = stripcslashes($_POST['subject']);
$contactMessage =
"Message:
$comment
Name: $name
E-mail: $emailAddr
Sending IP:$_SERVER[REMOTE_ADDR]
Sending Script: $_SERVER[HTTP_HOST]$_SERVER[PHP_SELF]";
//send the email
mail('YourEmailHere@gmail.com', $subject, $contactMessage);
echo('success'); //return success callback
?>
HTML:
<body>
<!--start contactable -->
<div id="contactable"><!-- contactable html placeholder --></div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<script type="text/javascript" src="http://anygoogle.com/contactable/jquery.validate.pack.js"></script>
<script type="text/javascript" src="http://anygoogle.com/contactable/jquery.contactable.js"></script>
<link rel="stylesheet" href="http://anygoogle.com/contactable/contactable.css" type="text/css" />
<script>$(function(){$('#contactable').contactable({subject: 'feedback URL:'+location.href});});</script>
<!--end contactable -->
<div id="page">
<h2> « Click the feedback link on the left</h2>
</div>
</body>
Jeśli Ci pomogłem naciśnij guzik POMÓGŁ lub dodaj PUNKT REPUTACJI