witam i o odpowiedz pytam:
dopiero raczkuje w php i chcialem zrobic prosty formularz z ktorego maile bylyby wysylane bezposrednio na skrzynke, bez posrednictwa outloocka itp. pogrzebalem i wymadrzylem taki skrypt:
<!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=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$companyname = $_POST['companyname'];
$phone = $_POST['phone'];
$information = $_POST['information'];
$adresdo = "abcdefg@wp.pl";
$temat = "Wiadomość z www";
$zawartość = "Imię i nazwisko: ".$nazwa."\n"
."Adres pocztowy: ".$email."\n"
."Telefon: ".$phone."\n"
."Nazwa firmy: ".$companyname."\n"
."Treść: \n" .$information."\n";
mail($adresdo. $temat. $zawartosc);
?>
</body>
</html>
ale nie chce w ogole dzialac dziad, a zadnego bledu znalezc nie moge... w zwiazku z tym prosze o pomoc i pytam - co jest znowu zle?
sam formularz wyglada tak:
<form id="form1" name="form1" method="post" action="form.php"> <ul><label for="name">Imię i nazwisko:
</label><input type="text" id="name" name="name" value="" /></ul> <ul><label for="companyname">Nazwa firmy:
</label><input type="text" id="companyname" name="companyname" value="" /></ul> <ul><label for="phone">Telefon kontaktowy:
</label><input type="text" id="phone" name="phone" value="" /></ul> <ul><label for="email">E-mail:
</label><input type="text" id="email" name="email" value="" /></ul> <ul><input type="submit" value="Wyślij" title="Wyślij" /> <input class="reset" type="reset" value="Wyczyść" title="Wyczyść" /></ul>
Ten post edytował makaron_lubelski 1.03.2010, 22:53:32