Results 1 to 10 of 10
Thread: .
Hybrid View
-
29th October 2007 19:35 #1Registered User
Join Date: Jul:2001
Location:
Posts: 1,711
.
. ,
.Last edited by GinFis; 30th October 2007 at 19:38.
Hakuna matata
-
29th October 2007 22:01 #2
php :
$to, $title, $msg .
sendmail -, .
Edit:
,
Code:<?php $to = "yourmail@somemail.com"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; $from = "borntodrink@hwbg.com"; // :-) $headers = "From: $from\r\n" . "X-Mailer: php"; if (mail($to, $subject, $body, $headers)) { echo("<p>Message sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } ?>Last edited by BornToDrink; 29th October 2007 at 22:13.
Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.
-
30th October 2007 16:42 #3Registered User
Join Date: Jul:2001
Location:
Posts: 1,711
- .
(),
, 1and1.com.
, :
formmail :
http://nms-cgi.sourceforge.net/formm...pat-3.14c1.zip.
( FAQ 1and1.com).
,
/cgi-bin.
form .... action=, - .
:
<form name="ime_na_formata" method="POST" action="/cgi-bin/FormMail.pl" enctype="text/plain">
.........
</form>Hakuna matata
-
31st October 2007 02:55 #4Registered User
Join Date: Jul:2001
Location:
Posts: 1,711
, BornToDrink ,
-, .
, /php/formmail.php,
:
<form name="ime_na_formata" method="GET" action="/php/FormMail.php" enctype="text/plain">
.........
</form>
, GET.Hakuna matata
-
31st October 2007 13:04 #5
-
31st October 2007 14:06 #6
GET? Zone, - POST, :
.php , ... .Code:<?php if (!isset($_POST['check'])) { ?> <form method="POST" action=""> <table> <tr> <td>Email: </td> <td><input type="text" name="email"></td> </tr> <tr> <td>Subject: </td> <td><input type="text" name="subject"></td> </tr> <tr> <td>Email text: </td> <td><textarea style="width: 330px; height: 100px;" name="textBody"></textarea></td> </tr> <tr> <td><input type="submit" value="Send Email"></td> <input type="hidden" value="1" name="check"> </tr> </table> </form> <?php }else { $to = "yourmail@somemail.com"; $from = $_POST['email']; $subject = $_POST['subject']; $body = $_POST['textBody']; $headers = "From: $from\r\n" . "X-Mailer: php"; if (mail($to, $subject, $body, $headers)) { echo("<p>Message sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } } ?>
PS - $to = "yourmail@somemail.com"; .Last edited by BornToDrink; 31st October 2007 at 14:13.
Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.
-
31st October 2007 14:12 #7
INPUT- , ,
. .
.. .EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|
-
31st October 2007 14:16 #8
, .
Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.
-
10th November 2007 17:16 #9Registered User
Join Date: Jul:2001
Location:
Posts: 1,711
POST ,
, ,
SUBMIT.Hakuna matata
-
10th November 2007 18:54 #10
.
EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in