Welcome to the forum 👋, Guest

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.

  • PËRSHËNDETJE VIZITOR!

    Nëse ju shfaqet ky mesazh do të thotë se ju nuk jeni regjistruar akoma. Anëtarët e rregjistruar kanë privilegjin të marrin pjesë në tema të ndryshme si dhe të komunikojnë me anëtarët e tjerë. Bëhu pjesë e forumit Netedy.com duke u REGJISTRUAR këtu ose nëse ke një llogari KYCU. Komunikim alternative i ketij forumi me vajza dhe djem nga te gjithe trevat shqiptare? Hyr ne: CHAT SHQIP.

nje Kontakt forme e thjeshte ne PHP

centos

ⓃⒺⓉⒺⒹⓎ.ⒸⓄⓂ
ANETAR ✓
Regjistruar më
Dhj 13, 2004
Mesazhe
39,819
Po shkruaj per ju nje forme kontakti te thjeshte. Mbase ju duhet ndonje dit :)

Code:
<?php
// kontrollojme emrin dhe email perpara se te dergojme email nese jan te paplotesuara
// nese jan te plotesuara shkon email nese nuk jane do u dal mesazhi ne fund
if(isset($_POST['emri']) && !empty($_POST['emri']) && isset($_POST['email']) && !empty($_POST['email'])) {
$emri= $_POST['emri]
$email = $_POST['email'];
$mesazhi = $_POST['mesazhi'];
$permbatjtja="Derguesi: $name \n Mesazhi: $mesazhi";
$marresi = "[email protected]";
$subjekti = "forme kontakti e thjeshte ne PHP";
$derguesi = "NGA: $email \r\n";
// mail() funksion ben te munder dergimin e te dhenave me siper! nese nxjerr error do te thot qe serveri nuk eshte konfiguruar me derguar email!
mail($marresi, $subjekti, $permbajtja, $derguesi) or die("Error! ndodhi nje problem");
echo "Faleminderit! ";
} else {
echo "Emri ose email nuk e ke plotesuar. si do te me kontaktosh kur nuk prezantohesh me emer?
}
?>
?>
<head>
<title>Netedy.com forme kontakti</title>
</head>
<body>
<!-- nese vendosim method="GET" nderro $_POST me $_GET -->
<form method="POST" action="">
<input type="text" name="emri" placeholder="Emri..">
<input type="email" name="email" placeholder="Email yt..">
<texarea name="mesazhi" rows="10" placeholder="Shkruaj mesazhin"></textarea>
</form>
</body>

Kaq ishte. Fare e thjeshte!
 
Last edited by a moderator:
Per ne injorantet ca eshte kjo:p
 
Per ne injorantet ca eshte kjo:p
Similar to this:
rYproxHcSG60DU24YRenGw.png
 
Flm:p
 
Dorina o c++
 

Postime të reja

Theme customization system

You can customize some areas of the forum theme from this menu.

Choose the color combination according to your taste

Select Day/Night mode

You can use it by choosing the day and night modes that suit your style or needs.

Welcome to the forum 👋, Guest

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.