Results 1 to 5 of 5
Thread: PHP contact form
Hybrid View
-
28th August 2017 15:27 #1Registered User
Join Date: May:2012
Location: plovdiv
Posts: 4
PHP contact form
, . .
Code:<?php session_start(); $name = $_GET['name']; $email = $_GET['email']; $message = $_GET['message']; $subject = ' :' . $name; if(strtolower($_REQUEST['code']) == strtolower($_SESSION['random_number'])) { $TO = "Email"; $h = "From: " . $email; $content = "$name ($email) :\n\n$message"; mail($TO, $subject, $content, $h); echo 1; } else { echo 0; // invalid code } ?>
-
28th August 2017 16:17 #2
$h = .....
:
$h = 'Content-type: text/plain; charset="utf-8"'."\r\n";
$h .= "From: $email\r\n";
$h .= "Reply-To: $email";
, ( , , - HTTP ), - UTF-8 .
-
28th August 2017 16:35 #3Registered User
Join Date: May:2012
Location: plovdiv
Posts: 4
tedych , , utf-8
-
29th August 2017 08:20 #4Registered User
Join Date: Jul:2006
Location:
Posts: 1,071
Subject- ( "from" , , email ), :
mail().PHP Code:$subject = '=?utf-8?B?' . base64_encode($subject) . '?=';
-
7th September 2017 21:08 #5Registered User
Join Date: Mar:2009
Location:
Posts: 169




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