Hi guys!
First of all Iīm sorry if this is a dubble post, but I have searched the post, but couldnīt find any answers. I have created a contact form it sends the message to the right e-mail address, but the receiver can not read
it, because no text appear in the mail nor the senders info. Here is the script and hopefully someone can help me:
this is the first site kontakt.php
<form action="poslano.php" method="post" name="form1" id="form1">
<table width="250" border="0" bgcolor="#0A0B0D">
<tr>
<td>Zadeva:</td>
<td><label for="zadeva"></label>
<input name="zadeva" type="text" class="fields" id="zadeva" size="30" /></td>
</tr>
<tr>
<td colspan="2"><label for="sporocilo"></label>
<div align="left">Sporočilo:
<textarea name="sporocilo" cols="35" rows="5" class="fields" id="sporocilo"></textarea>
</div></td>
</tr>
<tr>
<td>Ime:</td>
<td><label for="name"></label>
<input name="ime" type="text" class="fields" id="ime" size="30" /></td>
</tr>
<tr>
<td>Email:</td>
<td><label for="stranka"></label>
<input name="email" type="text" class="fields" id="email" size="30" /></td>
</tr>
<tr>
<td colspan="2"><label for="poslji"></label>
<input name="poslji" type="submit" class="buttons" id="poslji" value="Poslji" />
<label for="preklici"></label>
<input name="preklici" type="reset" class="buttons" id="preklici" value="Preklici" /></td>
</tr>
</table>
<label for="submit"></label>
</form>
and here is the poslano.php
<?php
$subject ="zadeva";
$message ="sporocilo";
$header ="from: $name <$email>";
$name ="ime";
$email ="email";
$to ="myaddress@domain.com";
$send_contact=mail($to, $subject, $message, $header);
if($send_contact) {
echo "Sporočilo poslano.";
}
else {
echo "Sporočilo ni poslano!.";
}
?>
I thank you in advance for any help I can get.
Contact form
Started by Headpetrol, Mar 05 2008 03:24 PM
2 replies to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
