Formular contact HTML
Last Updated: Jun 25 2016 09:11, Started by
VladutzU2013
, Jun 25 2016 07:46
·
0

#1
Posted 25 June 2016 - 07:46

Buna ziua,
Am un site in HTMl la care am adaugat in pagina contact.html un formular de comanda. cand apas butonul trimite email nu se intampla nimic de ce oare? fisierul de config asa apare: <?php // To define("WEBMASTER_EMAIL", '[email protected]'); ?> iar cel de contact: <?php /* Credits: Bit Repository URL: http://www.bitrepository.com/ */ include 'config.php'; error_reporting (E_ALL ^ E_NOTICE); $post = (!empty($_POST)) ? true : false; if($post) { $name = stripslashes($_POST['name']); $email = trim($_POST['email']); $subject = stripslashes($_POST['subject']); $message = stripslashes($_POST['message']); $error = ''; if(!$error) { $mail = mail(WEBMASTER_EMAIL, $subject, $message, "From: ".$name." <".$email.">\r\n" ."Reply-To: ".$email."\r\n" ."X-Mailer: PHP/" . phpversion()); if($mail) { echo 'OK'; } } } ?> Multumesc! |
#2
Posted 25 June 2016 - 08:51

n-ai absolut nici o bucatica de HTML in codul postat. doar php.
|
#3
Posted 25 June 2016 - 09:11

Mai bine foloseste ceva de genul https://www.machform.com/ care iti genereaza un form daca nu te pricepi sa faci unul. Sau pune mana si invata http://www.w3schools...p/php_forms.asp
Edited by motanu_mic, 25 June 2016 - 09:12. |
Anunturi
Bun venit pe Forumul Softpedia!
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users