إخواني , هناك صفحة هتمل فيها استمارة يتم ملؤها وإرسالها , المشكلة أن هذه الاستمارة بلغة ألمانية , قمت بأخذ كود الصفحة وقمت بتعريب الكلمات , وبعد أن فرغت قمت بالتجربة , وفوجئت أن الاستمارة إذا ملئت بالعربية , مثلا إذا كتب شخص اسمه وبلده أو أي شيء باللغة العربية تصل الرسالة لصاحب الاستمارة الكلام العربي يتحول إلى رموز اللي ما نفهمها ( أظنكم تعرفونها ) , فماذا يجب تعديله في هذا الكود لتصبح اللغة العربية تمام ؟ سأضع لكم الكود هنا يا إخواني وأرجو ممن لديه دراية ألا يبخل أكون شاكرا له كل الشكر وسأدعو له بظهر الغيب , أرجوكم إخواني
والسلامكود:<html> <head> <title>Chat-Club-Registrierung</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript"> <!-- function checkform () { var wert var fehler =0 var falsch = 0 var meldung = "" var falschmeldung = "" if (document.regform.chkthema[0].checked == false && document.regform.chkthema[1].checked == false && document.regform.chkthema[2].checked == false && document.regform.chkthema[3].checked == false && document.regform.chkthema[4].checked == false && document.regform.chkthema[5].checked == false && document.regform.chkthema[6].checked == false && document.regform.chkthema[7].checked == false && document.regform.chkthema[8].checked == false && document.regform.chkthema[9].checked == false && document.regform.chkthema[10].checked == false && document.regform.chkthema[11].checked == false && document.regform.chkthema[12].checked == false && document.regform.chkthema[13].checked == false && document.regform.chkthema[14].checked == false && document.regform.txtthema.value == "") { fehler ++ meldung += "Chat-Themen\n " } if (document.regform.chkchat[0].checked == false && document.regform.chkchat[1].checked == false && document.regform.chkchat[2].checked == false && document.regform.chkchat[3].checked == false && document.regform.chkchat[4].checked == false && document.regform.chkchat[5].checked == false && document.regform.chkchat[6].checked == false && document.regform.chkchat[7].checked == false && document.regform.chkchat[8].checked == false && document.regform.chkchat[9].checked == false && document.regform.chkchat[10].checked == false && document.regform.chkchat[11].checked == false && document.regform.chkchat[12].checked == false && document.regform.chkchat[13].checked == false && document.regform.chkchat[14].checked == false && document.regform.chkchat[15].checked == false && document.regform.chkchat[16].checked == false && document.regform.chkchat[17].checked == false && document.regform.chkchat[18].checked == false && document.regform.chkchat[19].checked == false && document.regform.chkchat[20].checked == false && document.regform.chkchat[21].checked == false && document.regform.chkchat[22].checked == false && document.regform.chkchat[23].checked == false && document.regform.chkchat[24].checked == false && document.regform.chkchat[25].checked == false && document.regform.chkchat[26].checked == false) { fehler ++ meldung += "bekannte Chats\n " } wert = document.regform.tel.value var zahlen = "0123456789+-/" var i = 0 if (wert =="") { document.regform.tel.focus() fehler ++ meldung += "Telefonnummer\n " } else { for (i = 0; i <= wert.length ; i++) { if (zahlen.indexOf(wert.charAt(i)) == -1 || wert.length <7 || wert.length > 25) { document.regform.tel.focus() falsch ++ falschmeldung += "Telefonnummer\n " break } } } wert = document.regform.mail.value if (wert =="") { document.regform.mail.focus() fehler ++ meldung += "E-mail\n " } else if (wert.indexOf("@")== -1) { document.regform.mail.focus() document.regform.mail.select() falsch += 1 falschmeldung += "E-mail-Adresse\n " } wert = document.regform.land.value if (wert =="nix") { document.regform.land.focus() fehler ++ meldung += "Land\n " } wert = document.regform.ort.value if (wert =="") { document.regform.ort.focus() fehler ++ meldung += "Ort\n " } wert = document.regform.plz.value var zahlen = "0123456789" var i = 0 if (wert =="") { document.regform.plz.focus() fehler ++ meldung += "Postleitzahl\n " } else { for (i = 0; i <= wert.length ; i++) { if (zahlen.indexOf(wert.charAt(i)) == -1 || wert.length <4 || wert.length > 5) { document.regform.plz.focus() falsch ++ falschmeldung += "Postleitzahl\n " break } } } wert = document.regform.adr.value if (wert =="") { document.regform.adr.focus() fehler ++ meldung += "Adresse\n " } wert = document.regform.jahr.value var zahlen = "0123456789" var i = 0 if (wert =="Jahr" || wert =="") { document.regform.jahr.focus() fehler ++ meldung += "Geburtsjahr\n " } else { for (i = 0; i <= wert.length ; i++) { if (zahlen.indexOf(wert.charAt(i)) == -1 || wert < 1900 || wert > 2000 ) { document.regform.jahr.focus() falsch ++ falschmeldung += "Geburtsjahr\n " break } } } wert = document.regform.vnam.value if (wert =="") { document.regform.vnam.focus() fehler ++ meldung += "Vorname\n " } wert = document.regform.nnam.value if (wert =="") { document.regform.nnam.focus() fehler ++ meldung += "Zuname\n " } if (document.regform.news[0].checked == false && document.regform.news[1].checked == false) { fehler ++ meldung += "Geschlecht\n " } if (fehler > 0 || falsch > 0 ) { if (fehler ==1) { meldung = "Das Feld "+meldung+" muك ausgefüllt werden." } else if (fehler >1) { meldung = "Die Felder "+meldung+" müssen ausgefüllt werden." } if (falsch ==1 ) { meldung = meldung + "\n Das Feld " +falschmeldung+ " wurde nicht korrekt ausgefüllt." } else if (falsch >1) { meldung = meldung + "\n Die Felder " +falschmeldung+ " wurden nicht korrekt ausgefüllt." } alert (meldung) return false } return } //--> </script> <noscript></noscript> </head> <body bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="10" cellpadding="0"> <tr> <td width="17%"><img src="logo_w.gif" width="202" height="107"></td> <td width="83%"> <p>Um Mitglied im Club der Chatter zu werden, mußt du folgendes Formular vollstنndig ausfüllen:</p> <p>Deine Mitgliedsnummer wird dir dann (üblicherweise innerhalb von zwei Werktagen) per Mail zugeschickt.</p> </td> </tr> </table> <form name="regform" action="mailto:chatclub@blackbox.net" method="post" target="" onSubmit="return checkform()"> <table width="95%" border="1"> <tr> <td>Familienname:</td> <td> <input type="text" name="nnam"> </td> </tr> <tr> <td>Vorname:</td> <td> <input type="text" name="vnam"> </td> </tr> <tr> <td>Geburtsdatum:</td> <td> <select name="select"> <option selected>Tag</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> </select> <select name="select2"> <option selected>-Monat-</option> <option value="jan">Jänner</option> <option value="feb">Februar</option> <option value="mrz">März</option> <option value="april">April</option> <option value="mai">Mai</option> <option value="jun">Juni</option> <option value="jul">Juli</option> <option value="aug">August</option> <option value="sep">September</option> <option value="okt">Oktober</option> <option value="nov">November</option> <option value="dez">Dezember</option> </select> <input type="text" name="jahr" value="Jahr" maxlength="4" size="6"> </td> </tr> <tr> <td>Adresse:</td> <td> <input type="text" name="adr"> </td> </tr> <tr> <td>Postleitzahl:</td> <td> <input type="text" name="plz"> </td> </tr> <tr> <td>Ort:</td> <td> <input type="text" name="ort"> </td> </tr> <tr> <td>Land:</td> <td> <select name="land"> <option value="nix">-----bitte auswählen-----</option> <option value="Deutschland">Deutschland</option> <option value="Oesterreich">Österreich</option> <option value="Schweiz">Schweiz</option> <option value="Andere">Anderes</option> </select> </td> </tr> <tr> <td>Mailadresse:</td> <td> <input type="text" name="mail"> </td> </tr> <tr> <td>Telefonnummer:</td> <td> <input type="text" name="tel"> </td> </tr> <tr> <td valign="top">Welche Talk2Friends-Chats kennst du?</td> <td> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="196" nowrap> <p> <input type="checkbox" name="chkchat" value="chkchatPal"> Palazzo<br> <input type="checkbox" name="chkchat" value="chkchatA4u"> All 4 You <br> <input type="checkbox" name="chkchat" value="chkchatCarry"> Carry's Princess Castle<br> <input type="checkbox" name="chkchat" value="chkchatEU"> ChatEuShopNet <br> <input type="checkbox" name="chkchat" value="chkchatChatteria"> Chatteria<br> <input type="checkbox" name="chkchat" value="chkchatCyber"> Cyberland<br> <input type="checkbox" name="chkchat" value="chkchatDolce"> Dolce Vita<br> <input type="checkbox" name="chkchat" value="chkchatEtern"> Eternity <br> <input type="checkbox" name="chkchat" value="chkchatHeaven"> Heaven & Hell <br> <input type="checkbox" name="chkchat" value="chkchatIndi"> Indian's Refugium <br> <input type="checkbox" name="chkchat" value="chkchatCamel"> JoECam<br> <input type="checkbox" name="chkchat" value="chkchatJupp"> Jupp's Palace<br> <input type="checkbox" name="chkchat" value="chkchatKid"> KidsTown <br> <input type="checkbox" name="chkchat" value="chkchat2gether"> Lets come together </p> </td> <td width="241" valign="top"> <p> <input type="checkbox" name="chkchat" value="chkchatLostP"> Lost Paradise<br> <input type="checkbox" name="chkchat" value="chkchatMeet"> Meetpoint <br> <input type="checkbox" name="chkchat" value="chkchatMerl"> Merlin's World <br> <input type="checkbox" name="chkchat" value="chkchatMilka"> Milka <br> <input type="checkbox" name="chkchat" value="chkchatMystery"> Mystery.at<br> <input type="checkbox" name="chkchat" value="chkchatMystD"> Mystic Dreams<br> <input type="checkbox" name="chkchat" value="chkchatNFire"> Nightfire<br> <input type="checkbox" name="chkchat" value="chkchatNHawk"> Nighthawks <br> <input type="checkbox" name="chkchat" value="chkchatProm"> Prometheus<br> <input type="checkbox" name="chkchat" value="chkchatSwiss"> Swiss Cliche <br> <input type="checkbox" name="chkchat" value="chkchat66"> The Home of 66<br> <input type="checkbox" name="chkchat" value="chkchatLover"> True Lover´s Palace <br> <input type="checkbox" name="chkchat" value="chkchatWild"> Wild and Crazy<br> </p> </td> </tr> </table> </td> </tr> <tr> <td valign="top">Welche Themen würdest du gerne in einem Chat wiederfinden?</td> <td> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="160" nowrap> <input type="checkbox" name="chkthema" value="chkthemanix"> ich will nur plaudern<br> <input type="checkbox" name="chkthema" value="chkthemalove"> Flirt & Liebe <br> <input type="checkbox" name="chkthema" value="chkthemacomp"> Computer<br> <input type="checkbox" name="chkthema" value="chkthematier"> Tiere<br> <input type="checkbox" name="chkthema" value="chkthemasport"> Motor/Sport<br> <input type="checkbox" name="chkthema" value="chkthemareise"> Reisen<br> <input type="checkbox" name="chkthema" value="chkthemafilm"> Film<br> <input type="checkbox" name="chkthema" value="chkthemalesen"> Literatur<br> </td> <td> <p> <input type="checkbox" name="chkthema" value="chkthematheater"> Theater/Kabarett<br> <input type="checkbox" name="chkthema" value="chkthemagame"> Computerspiele<br> <input type="checkbox" name="chkthema" value="chkthemafrauen"> Frauen<br> <input type="checkbox" name="chkthema" value="chkthemakids"> Kids<br> <input type="checkbox" name="chkthema" value="chkthemarel"> Religion<br> <input type="checkbox" name="chkthema" value="chkthemapolit"> Politik<br> <input type="checkbox" name="chkthema" value="chkthemagesund"> Gesundheit <br> <input type="checkbox" name="chkthema" value="chkthemaother"> andere: <input type="text" name="txtthema"> </p> </td> </tr> </table> </td> </tr> <tr> <td valign="top" width="250" nowrap>Hast du Vorschläge, wie man die Chat-Club Chats verbessern könnte? </td> <td> <textarea name="Verbesserung" cols="50"></textarea> </td> </tr> <tr> <td valign="top" width="250" nowrap>Möchtest du Informationen zu neuen Chats und den stattfindenden Events erhalten?</td> <td> <p> <input type="radio" name="news" value="rdnewsja" checked> Ja<br> <input type="radio" name="news" value="rdnewsnein"> Nein</p> </td> </tr> </table> <p> <input type="submit" name="submit" value="Abschicken"> <input type="reset" name="submit2" value="Zurücksetzen"> </p> </form> Falls du beim Abschicken des Formulares Probleme haben solltest, schick eine e-Mail an <a href="mailto:chatclub@blackbox.net">chatclub@blackbox.net</a>. <p> </p> <p> </p> </body> </html>



