orotoi Δημοσ. 31 Δεκεμβρίου 2010 Δημοσ. 31 Δεκεμβρίου 2010 οχι ρε συ.. δεν έχεις κάπου φλας αυτό εννοώ.. μείνε χωρίς. lol @gtroza spoiler
gtroza Δημοσ. 31 Δεκεμβρίου 2010 Δημοσ. 31 Δεκεμβρίου 2010 Για την κωδικοποίηση μήπως γνωρίζεις τι μπορώ να κάνω κυρίως για να λαμβάνω και ελληνικά ε-μαιλ ? παρέθεσα τις απαντήσεις των ειδικών και έκανα με κόκκινο αυτά που κατάλαβα ότι πρέπει να συμφωνούν δεν είμαι προγραμματιστής το πρώτο είναι ο κώδικας της σελίδας σου όπως τον βλέπω εγώ στο safari .
spartakoscs Δημοσ. 31 Δεκεμβρίου 2010 Δημοσ. 31 Δεκεμβρίου 2010 >$headers .= "Content-type: text; charset=utf-8\r\n";
xlapatsas4000 Δημοσ. 31 Δεκεμβρίου 2010 Μέλος Δημοσ. 31 Δεκεμβρίου 2010 >$headers .= "Content-type: text; charset=utf-8\r\n"; Σας ευχαριστώ ρε παιδια το καναμε και αυτο...... Το μόνο που μένει είναι να βάλω εποχρεωτικά πεδία, καμία ιδέα ?
orotoi Δημοσ. 31 Δεκεμβρίου 2010 Δημοσ. 31 Δεκεμβρίου 2010 εκατοντάδες.. πάει να σπάσει το κεφάλι μου απο ιδέες
xlapatsas4000 Δημοσ. 31 Δεκεμβρίου 2010 Μέλος Δημοσ. 31 Δεκεμβρίου 2010 εκατοντάδες.. πάει να σπάσει το κεφάλι μου απο ιδέες χαχαχαχα πέτα και καμία να δούμε αν είναι καλή χαχαχαχα....
orotoi Δημοσ. 31 Δεκεμβρίου 2010 Δημοσ. 31 Δεκεμβρίου 2010 χαχαχαχα πέτα και καμία να δούμε αν είναι καλή χαχαχαχα.... να φτιάξουμε μια ιπτάμενη βόμβα ρομπότ που θα μπορεί να αναγνωρίσει πρόσωπα (βουλευτές) και να τη στείλουμε στο σύνταγμα (βουλή) στο script που επεξεργάζεται τη φόρμα σου, θα ελέγχεις αν το πεδίο name για παράδειγμα έχει πράμα μέσα.. hint: isempty, isset ή απλώς if ($name == "") Υπάρχουν αρκετά επίσης validators για τη μορφή του email.
xlapatsas4000 Δημοσ. 31 Δεκεμβρίου 2010 Μέλος Δημοσ. 31 Δεκεμβρίου 2010 να φτιάξουμε μια ιπτάμενη βόμβα ρομπότ που θα μπορεί να αναγνωρίσει πρόσωπα (βουλευτές) και να τη στείλουμε στο σύνταγμα (βουλή) στο script που επεξεργάζεται τη φόρμα σου, θα ελέγχεις αν το πεδίο name για παράδειγμα έχει πράμα μέσα.. hint: isempty, isset ή απλώς if ($name == "") Υπάρχουν αρκετά επίσης validators για τη μορφή του email. xaxa καλο αυτο με την βόμβα, μπορεί να προσπαθ'ησω να το κάνω θα ξεμπερδέψω ποιο γρήγορα απο την ιστοσελίδα χαχα... εγώ έχω αυτό ><div id="contact_form"> <form id="form2" method="post" action="/mail.php"> <fieldset> <label for="con_name">Όνομα:</label><br /> <input id="con_name" type="text" name="con_name" value="" alt=""/><br /> <label for="con_email">Διεύθυνση Ηλεκτρονικού Ταχυδρομίου:</label><br /> <input id="con_email" type="text" name="con_email" value="" alt=""/><br /> <label for="con_website">Τηλέφωνο:</label><br /> <input id="con_website" type="text" name="con_website" value="" alt=""/><br /> <label for="con_mess">Μήνυμα:</label><br /> <textarea id="con_mess" name="con_mess" cols="0" rows="0"></textarea><br /> <input name="submit" type="submit" id="contact-submit" value="Submit"/> </fieldset> </form> </div> θα το κάνω κάπως έτσι για να πω ότι το πεδίο με το "όνομα" ελιναι υποχρεωτικό ? ><div id="contact_form"> <form id="form2" method="post" action="/mail.php"> <fieldset> <label for="con_name">Όνομα:</label><br />if ($name == "όνομα") <input id="con_name" type="text" name="con_name" value="" alt=""/><br /> <label for="con_email">Διεύθυνση Ηλεκτρονικού Ταχυδρομίου:</label><br /> <input id="con_email" type="text" name="con_email" value="" alt=""/><br /> <label for="con_website">Τηλέφωνο:</label><br /> <input id="con_website" type="text" name="con_website" value="" alt=""/><br /> <label for="con_mess">Μήνυμα:</label><br /> <textarea id="con_mess" name="con_mess" cols="0" rows="0"></textarea><br /> <input name="submit" type="submit" id="contact-submit" value="Submit"/> </fieldset> </form> </div>
xlapatsas4000 Δημοσ. 31 Δεκεμβρίου 2010 Μέλος Δημοσ. 31 Δεκεμβρίου 2010 ααα στο σκριπτ δηλαδή εδώ ><?php $name=$_POST['if ($name == "όνομα")']; $email=$_POST['con_email']; $phone=$_POST['con_website']; $message=$_POST['con_mess']; $ToEmail = "[email protected]"; $ToSubject = "Contact Form from Your Website Name"; $EmailBody = "Name: $name\n Email: $email\n Phone: $phone\n Message: $message\n"; $Message = $EmailBody; $headers .= "Content-type: text; charset=utf-8\r\n"; $headers .= "From:".$email."\r\n"; if(mail($ToEmail,$ToSubject,$Message, $headers)){ header( 'Location: http://kerasiaraxhs.110mb.com/index.html' ) ;//για να κάνεις ανακατεύθυνση τον άλλον όταν σταλεί το email ! } ?>
spartakoscs Δημοσ. 31 Δεκεμβρίου 2010 Δημοσ. 31 Δεκεμβρίου 2010 > <?php $name=$_POST['con_name']; $email=$_POST['con_email']; $phone=$_POST['con_website']; $message=$_POST['con_mess']; if($name != "" && $phone != "" && $message != "" && validation_email($email) == TRUE){ $ToEmail = "[email protected]"; $ToSubject = "Contact Form from Your Website Name"; $EmailBody = "Name: $name\n Email: $email\n Phone: $phone\n Message: $message\n"; $Message = $EmailBody; $headers .= "Content-type: text; charset=utf-8\r\n"; $headers .= "From:".$email."\r\n"; if(mail($ToEmail,$ToSubject,$Message, $headers)){ header( 'Location: http://kerasiaraxhs.110mb.com/index.html' ) ;//για να κάνεις ανακατεύθυνση τον άλλον όταν σταλεί το email ! }else{ header( 'Location: http://yoururl/yourcontactform.html' ) ;//εάν δεν σταλεί να τον ξαναπηγαίνει στη contact form } }else{ header( 'Location: http://yoururl/yourcontactform.html' ) ;//εάν το όνομα τηλέφωνο και μήνυμα είναι κενά ή ένα από αυτά και το email δεν έχει σωστή μορφή να το ξαναπηγαίνει όπου θες ! } //email validation function validation_email($email) { $result = TRUE; if(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $email)) { $result = FALSE; } return $result; } ?>
xlapatsas4000 Δημοσ. 2 Ιανουαρίου 2011 Μέλος Δημοσ. 2 Ιανουαρίου 2011 Γιατί όταν μπαίνω εδώ για έλεγχο, μου βγάζει τα ακόλουθα errors ? Validation Output: 4 Errors 1. Error Line 35, Column 91: required attribute "alt" not specified …h1><a href="index.html"><img src="logo.jpg" width="575" height="90" /></a></h1> ✉ The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element. Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>. 2. Error Line 161, Column 167: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag … <div class="addthis_toolbox addthis_default_style "> ✉ The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). 3. Error Line 259, Column 78: document type does not allow element "script" here …type="text/javascript" src="http://analytics.hosting24.com/count.php"></script> ✉ The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed). One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error). 4. Error Line 260, Column 10: document type does not allow element "noscript" here <noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hostin… ✉ The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed). One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error). Είναι κακό αυτό ?αν διωρθώσω αυτά τα ερορ ο κώδικας δεν είναι σωστός.
dewn735 Δημοσ. 2 Ιανουαρίου 2011 Δημοσ. 2 Ιανουαρίου 2011 Γιατί δεν είναι σωστός αν τα διορθώσεις; Για το πρώτο, απλά δηλώνεις και ένα alt για κάθε εικόνα της σελίδα σου (<img src='path' alt='Εναλλακτικό κείμενο' />) - βοηθάει και στο CEO. Για το δεύτερο, δεν μπορείς να έχεις div μέσα σε παράγραφο (<p>). Τα άλλα τρία εκτελούνται μετά από το </html>, λογικό κι επόμενο είναι να σου τα βγάλει σαν λάθος. Γενικότερα, δε θα έχεις κάποιο θέμα με αυτά τα errors...
Προτεινόμενες αναρτήσεις
Αρχειοθετημένο
Αυτό το θέμα έχει αρχειοθετηθεί και είναι κλειστό για περαιτέρω απαντήσεις.