POS THA AFAIRESO KOMATI KODIKA ?

Ερωτήσεις και απαντήσεις σχετικές με την HTML, XHTML και την κατασκευή σελίδων για το Web.

Συντονιστές: WebDev Moderators, Super-Moderators

Κλειδωμένο
kostas-theod
Δημοσιεύσεις: 222
Εγγραφή: 11 Ιαν 2004 09:15
Τοποθεσία: Πάτρα-ΕΛΛΑΔΑ

POS THA AFAIRESO KOMATI KODIKA ?

Δημοσίευση από kostas-theod » 25 Μάιος 2004 15:54

tHA ITHELA NA AFAIRESO TO KOYTI SEIMEIOSEIS APO TON PARAKATO KODIKA.

kostas-theod
Δημοσιεύσεις: 222
Εγγραφή: 11 Ιαν 2004 09:15
Τοποθεσία: Πάτρα-ΕΛΛΑΔΑ

POS THA AFAIRESO KOMATI KODIKA ?

Δημοσίευση από kostas-theod » 25 Μάιος 2004 15:56

<?php

/*

Change the email address to your own.

$empty_fields_message and $thankyou_message can be changed
if you wish.

*/

// Change to your own email address
$your_email = "info@printnet.gr";

// This is what is displayed in the email subject line
// Change it if you want
$subject = "E-mail &aacute;&eth;&iuml; &ocirc;&ccedil;&iacute; &oacute;&aring;&euml;&szlig;&auml;&aacute; &atilde;&eacute;&aacute; &eth;&aring;&euml;&Uuml;&ocirc;&aring;&ograve;";

// This is displayed if all the fields are not filled in
$empty_fields_message = "<p>&ETH;&aacute;&ntilde;&aacute;&ecirc;&aacute;&euml;&thorn; &eth;&ccedil;&atilde;&aacute;&szlig;&iacute;&aring;&ocirc;&aring; &eth;&szlig;&oacute;&ugrave; &ecirc;&aacute;&eacute; &oacute;&otilde;&igrave;&eth;&euml;&ccedil;&ntilde;&thorn;&oacute;&ocirc;&aring; &uuml;&euml;&aacute; &ocirc;&aacute; &eth;&aring;&auml;&szlig;&aacute;.</p>";

// This is displayed when the email has been sent
$thankyou_message = "<p>&Aring;&otilde;&divide;&aacute;&ntilde;&eacute;&oacute;&ocirc;&thorn;.&Ccedil; &ouml;&uuml;&ntilde;&igrave;&aacute; &oacute;&aacute;&ograve; &Yacute;&divide;&aring;&eacute; &aacute;&eth;&iuml;&oacute;&ocirc;&aacute;&euml;&aring;&szlig;.&Egrave;&aacute; &oacute;&aacute;&ograve; &aacute;&eth;&aacute;&iacute;&ocirc;&THORN;&oacute;&iuml;&otilde;&igrave;&aring; &ocirc;&iuml; &oacute;&otilde;&iacute;&iuml;&igrave;&uuml;&ocirc;&aring;&ntilde;&iuml; &auml;&otilde;&iacute;&aacute;&ocirc;&uuml;&iacute;.</p>";

// You do not need to edit below this line

$name = stripslashes($_REQUEST['txtName']);
$email = stripslashes($_REQUEST['txtEmail']);
$message = stripslashes($_REQUEST['txtMessage']);

if (!isset($_REQUEST['txtName'])) {

?>

<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">

<p><label for="txtName">&Aring;&eth;&ugrave;&iacute;&otilde;&igrave;&szlig;&aacute; :</label><br />
<input type="text" title="&Oacute;&otilde;&igrave;&eth;&euml;&ccedil;&ntilde;&thorn;&oacute;&ocirc;&aring; &ocirc;&ccedil;&iacute; &aring;&eth;&ugrave;&iacute;&otilde;&igrave;&szlig;&aacute; &oacute;&aacute;&ograve;" name="txtName" /></p>

<p><label for="txtEmail">&Ecirc;&ugrave;&auml;&eacute;&ecirc;&uuml;&ograve; &ETH;&aring;&euml;&Uuml;&ocirc;&ccedil; :</label><br />
<input type="text" title="&Oacute;&otilde;&igrave;&eth;&euml;&ccedil;&ntilde;&thorn;&oacute;&ocirc;&aring; &ocirc;&ugrave;&iacute; &Ecirc;&ugrave;&auml;&eacute;&ecirc;&uuml; &ETH;&aring;&euml;&Uuml;&ocirc;&ccedil;.&Aacute;&iacute;&aacute;&atilde;&ntilde;&aacute;&ouml;&aring;&ocirc;&aacute;&eacute; &oacute;&ocirc;&aacute; &ocirc;&eacute;&igrave;&iuml;&euml;&uuml;&atilde;&eacute;&aacute;." name="txtEmail" /> * &Oacute;&ocirc;&iuml; &ocirc;&eacute;&igrave;&iuml;&euml;&uuml;&atilde;&eacute;&iuml;</p>

<p><label for="txtMessage">&Oacute;&ccedil;&igrave;&aring;&eacute;&thorn;&oacute;&aring;&eacute;&ograve; :</label><br />
<textarea title="&Oacute;&otilde;&igrave;&eth;&euml;&ccedil;&ntilde;&thorn;&oacute;&ocirc;&aring; &oacute;&ccedil;&igrave;&aring;&eacute;&thorn;&oacute;&aring;&eacute;&ograve;" name="txtMessage"></textarea> </p>

<p><label title="&Aacute;&ETH;&Iuml;&Oacute;&Ocirc;&Iuml;&Euml;&Ccedil; &Igrave;&Ccedil;&Iacute;&Otilde;&Igrave;&Aacute;&Ocirc;&Iuml;&Oacute;">
<input type="submit" value="&Aacute;&ETH;&Iuml;&Oacute;&Ocirc;&Iuml;&Euml;&Ccedil;" /></label></p>

</form>

<?php

}

elseif (empty($name) || empty($email) || empty($message)) {

echo $empty_fields_message;

}

else {

mail($your_email, $subject, $message, "&Aacute;&eth;&uuml;: $name <$email>");

echo $thankyou_message;

}

?>

Άβαταρ μέλους
Expl0it
Honorary Member
Δημοσιεύσεις: 2364
Εγγραφή: 25 Αύγ 2003 23:24
Τοποθεσία: home/sweet/home

POS THA AFAIRESO KOMATI KODIKA ?

Δημοσίευση από Expl0it » 25 Μάιος 2004 15:57

Το προηγούμενο σου θέμα συνεχίζεται εδώ : http://www.freestuff.gr/forums/viewtopic.php?t=10291
LET THE C0DER IN YOUR LIFE
Fatal Error: Unable to read 3555 bytes in /root/head/brain/task.php on line 0

Εικόνα

Κλειδωμένο

Επιστροφή στο “HTML και XHTML”

Μέλη σε σύνδεση

Μέλη σε αυτήν τη Δ. Συζήτηση: Δεν υπάρχουν εγγεγραμμένα μέλη και 1 επισκέπτης