Contact mail

Na svojo stran bi rad dal obrazec (contact) da mi lahko obiskovalci pošlejo svoja mnenja. Neki sm našu na netu sam nevem kako spremenit za mojo stran

<!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" />
<title>Untitled Document</title>
</head>

<body>
<tr>
                      <td width="5"></td>
                      <td valign="top">

<table width="90%" border="0" cellspacing="0" cellpadding="0" class="content"><tr><td>
    <center>

<font size="2" face="verdana,arial,helvetica">All comments and suggestions about this web site are very welcome and a valuable source of information for us. Thanks!</font>
    <FORM METHOD="post" ACTION="http://www.xxxxxxxxxx.com/modules.php?name=Feedback" target="_blank"><font size="2" face="verdana,arial,helvetica">

**Your Name:**

    <INPUT type="text" NAME="sender_name" VALUE="" SIZE=30></p>

**Your Email:**

    <INPUT type="text" NAME="sender_email" VALUE="" SIZE=30></p>

**Message:**

    <TEXTAREA NAME="message" COLS=30 ROWS=5 WRAP=virtual></TEXTAREA></p>
    <INPUT type="hidden" name="opi" value="ds">

<INPUT TYPE="submit" NAME="submit" VALUE="Send"></p>
    </font></FORM></center>

</td></tr></table>


</body>
</html>

Verjetno moram spremenit ACTION="http://www.xxxxxxxxxx.com/modules.php?name=Feedback" target="_blank".

A tukaj vpišem npr. ACTION="http://www.mojastran.com/modules.php?name=mojUsername" target="_blank" ?

3 odgovori

Nared contact.php z obliko tvoje strani in si pomagaj malo s tem :

<form action="<? echo $_POST['self']; ?>" method="post">
<input name="subject" type="text" value="Subject" size="50" maxlength="50">

<input name="email" type="text" value="yourfriends@email.com" size="50" maxlength="50">

<textarea name="message" cols="20" rows="4">message</textarea>

<input name="send" type="submit" value="send">
</form>
<?
if (@$_POST['send']=="send")
{
$email=$_POST['email'];
$subject=$_POST['subject'];
$message=$_POST['message'];

//send mail
mail($email, $subject, $message);
echo "Your email was sent to: $email";
}
?>

Spremeni $email v tvoj email da bo pošiljajo k tebi. Tud zbriši tisti form kjer je email že vpisan in je !

Tole sem dobu na strani od lukaslo :D --- http://php-scripts.poglej.net/

In potem mu zelim veselo gledanje, kako mu robotki posiljajo brezvezne maile :)

Hvala hvala hvala iMojster you are far to kind :D