Hirdetés
- Vivo X300 Ultra - tárcsázz, ha van rá keret!
- Kiderültek az Oppo Pad 5 Pro és Pad Mini főbb adatai
- Stylusszal érkezhet a hajlítható Huawei Pura X Max, AI-trükkökkel fűszerezve
- Hatalmas akkut és korrekt teljesítményt ígér a Vivo
- Memóriahiány és drágulás fékezheti a mobilokat, csökkentek a Q1-es kiszállítások
- Yettel topik
- Szívós, szép és kitartó az új OnePlus óra
- EarFun Air Pro 4+ – érdemi plusz
- Vivo X300 Ultra - tárcsázz, ha van rá keret!
- Poco X8 Pro Max - nem kell ide sem bank, sem akkubank
- Xiaomi 15T Pro - a téma nincs lezárva
- Xiaomi 17 Ultra - jó az optikája
- Xiaomi 15 - kicsi telefon nagy energiával
- iPhone topik
- Honor Magic8 Pro - bevált recept kölcsönvett hozzávalókkal
Új hozzászólás Aktív témák
-
PowerBuldog
veterán
válasz
spammer
#13751
üzenetére
szarul másoltam ki

Úgy másoltam egy oldalról, szóval nem értem mi a gondja
Ez a teljes:
<?php
if(isset($_POST['email'])) {
$to = 'valami@dsfgsdf.hu';
$subject = 'asadfasdf';
function died($error) {
// your error code can go here
echo "We are very sorry, but there were error(s) found with the form you submitted. ";
echo "These errors appear below.";
echo $error."";
echo "Please go back and fix these errors.";
die();
}
// validation expected data exists
if(!isset($_POST['first_name']) ||
!isset($_POST['last_name']) ||
!isset($_POST['email']) ||
!isset($_POST['comments'])) {
died('We are sorry, but there appears to be a problem with the form you submitted.');
}
$first_name = $_POST['first_name']; // required
$last_name = $_POST['last_name']; // required
$email_from = $_POST['email']; // required
$telephone = $_POST['telephone']; // not required
$comments = $_POST['comments']; // required
$error_message = "";
$email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
if(!preg_match($email_exp,$email_from)) {
$error_message .= 'The Email Address you entered does not appear to be valid.';
}
$string_exp = "/^[A-Za-z .'-]+$/";
if(!preg_match($string_exp,$first_name)) {
$error_message .= 'The First Name you entered does not appear to be valid.';
}
if(!preg_match($string_exp,$last_name)) {
$error_message .= 'The Last Name you entered does not appear to be valid.';
}
if(strlen($comments) < 2) {
$error_message .= 'The Comments you entered do not appear to be valid.';
}
if(strlen($error_message) > 0) {
died($error_message);
}
$email_message = "Form details below.\n\n";
function clean_string($string) {
$bad = array("content-type","bcc:","to:","cc:","href");
return str_replace($bad,"",$string);
}
$email_message .= "First Name: ".clean_string($first_name)."\n";
$email_message .= "Last Name: ".clean_string($last_name)."\n";
$email_message .= "Email: ".clean_string($email_from)."\n";
$email_message .= "Telephone: ".clean_string($telephone)."\n";
$email_message .= "Comments: ".clean_string($comments)."\n";
// create email headers
$headers = 'From: '.$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
'X-Mailer: PHP/' . phpversion();
@mail($to, $subject, $email_message, $headers);
?>
<!-- include your own success html here -->
Thank you for contacting us. We will be in touch with you very soon.
<?php
}
?>
Új hozzászólás Aktív témák
- Rövid időre leállhat a 8 GB-os GeForce RTX 5060 Ti gyártása
- Samsung Galaxy Felhasználók OFF topicja
- E-roller topik
- 5.1, 7.1 és gamer fejhallgatók
- Apple MacBook
- 3D nyomtatás
- Egy androidlánnyal tenné kelendőbbé a GeForce-okat az NVIDIA
- Xbox Series X|S
- TCL LCD és LED TV-k
- Battlefield 6
- További aktív témák...
- MSI Bravo C7VFK 15.6" FHD IPS Ryzen 7 7735HS RTX 4060 16GB 512GB NVMe gar
- HP ZBook Fury G11 i9-14900HX / 128GB RAM / RTX 4000 Ada / 4K OLED / 2TB / dokkoló
- BONTATLAN GARANCIÁLIS MACBOOK AIR M4 // 16GB RAM // 256GB SSD
- PS4 lemezes // 1 kontrollerrel
- HP ProBook 450 G4 // i5-7200U // 4GB RAM // 120GB SSD
- HIBÁTLAN iPhone 12 Pro 128GB Pacific Blue- 1ÉV GARANCIA -Kártyafüggetlen, MS3948
- Targus DOCK423A - USB-C Dual HDMI 4K HUB - 2 x HDMI (120Hz)
- RGB GAMER PC! i7-13700K / RTX 4080 / Z790 Strix / 32GB 3600MHz / 2TB NVMe / 850w Gold!
- 27% - Corsair Nautilus 240 RS RGB White Vízhűtő!
- 212 - Lenovo IdeaPad Slim 5 (16IMH9) - Intel Core U5 125H, no GPU
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest


