Avatar billede charmander1978 Nybegynder
10. januar 2008 - 15:26 Der er 6 kommentarer

Formular vises ikke rigtigt i mailboks

Jeg har et opmålingsskema, der fungere rigtig godt - lige på nær at når det ender i mailboksen skå kan den ikke læse æ ø og å. Hvordan får jeg den til det?

http://www.masterdoor.dk/sider/05-opmaaling/opmaaling.php




<form id="FormeName" action="../../sider/05-opmaaling/modtag.php" method="post" name="FormeName">
                                                                        <table width="400" border="0" cellspacing="0" cellpadding="0" height="1035">
                                                                                <tr height="25">
                                                                                    <td width="77" height="25"></td>
                                                                                    <td valign="bottom" width="323" height="25">
                                                                                        <div class="brodtekst_form">
                                                                                            <p>Du kan benytte denne formular til bestilling af et tilbud på en ledhejseport.</p>
                                                                                            <p>Du kan selv hurtigt og enkelt måle op til din nye garageport, følg blot tengingen her under.<br />
                                                                                                Husk – at et porthul altid skal ses inde fra.</p>
                                                                                        </div>
                                                                                        <p><span class="brodtekst_form"><img class="ramme_forms" src="../../img/opmaaling/malskema.jpg" alt="" height="245" width="350" border="0" /></span></p>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr height="30">
                                                                                    <td width="77" height="30">
                                                                                        <table width="77" border="0" cellspacing="0" cellpadding="0">
                                                                                            <tr>
                                                                                                <td></td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </td>
                                                                                    <td valign="bottom" width="323" height="30"><span class="mellemrubrik_forms">Udfyld venligst nedenstående</span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td valign="bottom" width="323" height="20"><span class="under_mellemrubrik_forms">Indtast dine mål</span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td valign="bottom" width="323" height="20">
                                                                                        <table width="400" border="0" cellspacing="0" cellpadding="0" height="20">
                                                                                            <tr>
                                                                                                <td valign="middle" width="50"><input type="text" name="01_Murhulshojde" size="2" /> </td>
                                                                                                <td width="30"><span class="brodtekst_form">cm</span></td>
                                                                                                <td width="325"><span class="brodtekst_form">A - Murhulshøjde</span></td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td valign="bottom" width="323" height="20">
                                                                                        <table width="400" border="0" cellspacing="0" cellpadding="0" height="20">
                                                                                            <tr>
                                                                                                <td valign="middle" width="50"><input type="text" name="02_Murhulsbredde" size="2" /></td>
                                                                                                <td width="30"><span class="brodtekst_form">cm</span></td>
                                                                                                <td width="325"><span class="brodtekst_form">B - Murhulsbredde</span></td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td valign="bottom" width="323" height="20">
                                                                                        <table width="400" border="0" cellspacing="0" cellpadding="0" height="20">
                                                                                            <tr>
                                                                                                <td valign="middle" width="50"><input type="text" name="03_Overhøjde" size="2" /></td>
                                                                                                <td width="30"><span class="brodtekst_form">cm</span></td>
                                                                                                <td width="325"><span class="brodtekst_form">C - Overhøjde</span></td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td valign="bottom" width="323" height="20">
                                                                                        <table width="400" border="0" cellspacing="0" cellpadding="0" height="20">
                                                                                            <tr>
                                                                                                <td valign="middle" width="50"><input type="text" name="04_Sideplads - venstre" size="2" /></td>
                                                                                                <td width="30"><span class="brodtekst_form">cm</span></td>
                                                                                                <td width="325"><span class="brodtekst_form">D - Sideplads - venstre</span></td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td valign="bottom" width="323" height="20">
                                                                                        <table width="400" border="0" cellspacing="0" cellpadding="0" height="20">
                                                                                            <tr>
                                                                                                <td valign="middle" width="50"><input type="text" name="05_Sideplads - hojre" size="2" /></td>
                                                                                                <td width="30"><span class="brodtekst_form">cm</span></td>
                                                                                                <td width="325"><span class="brodtekst_form">E - Sideplads - højre</span></td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td valign="bottom" width="323" height="20">
                                                                                        <table width="400" border="0" cellspacing="0" cellpadding="0" height="20">
                                                                                            <tr>
                                                                                                <td valign="middle" width="50"><input type="text" name="06_Rumdybde" size="2" /></td>
                                                                                                <td width="30"><span class="brodtekst_form">cm</span></td>
                                                                                                <td width="325"><span class="brodtekst_form">F - Rumdybde</span></td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr height="30">
                                                                                    <td width="77" height="30"></td>
                                                                                    <td valign="bottom" width="323" height="30"><span class="mellemrubrik_forms">Udfyld venligst øvrige ønsker</span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td valign="bottom" width="323" height="20"><span class="under_mellemrubrik_forms">Garageporte</span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td width="323" height="20">
                                                                                    <div class="brodtekst_form">
                                                                                            <input type="radio" name="radiogroup" value="07_Garageport - vippeport" />Vippeport</div>
                                                                                </td>
                                                                                </tr>
                                                                            <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td width="323" height="20"><input type="radio" name="radiogroup" value="08_Garageport - ledhejseport" /><span class="brodtekst_form">Ledhejseport</span></td>
                                                                                </tr>
                                                                            <tr height="25">
                                                                                    <td width="77" height="25"></td>
                                                                                    <td valign="bottom" width="323" height="25"><span class="under_mellemrubrik_forms">Industriporte</span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td width="323" height="20"><input type="radio" name="radiogroup" value="09_Industriport - ledhejseport" /><span class="brodtekst_form">Ledhejseport</span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td width="323" height="20"><input type="radio" name="radiogroup" value="10_Industriport - Hurtigkorendeport" /><span class="brodtekst_form">Hurtigkørendeport</span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td width="323" height="20"><input type="radio" name="radiogroup" value="11_Industriport - Rulleport" /><span class="brodtekst_form">Rulleport</span></td>
                                                                                </tr>
                                                                            <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td width="323" height="20"><input type="radio" name="radiogroup" value="12_Industriport - Foldeport" /><span class="brodtekst_form">Foldeport</span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td width="323" height="20"><input type="radio" name="radiogroup" value="13_Industriport - Staal skydeport" /><span class="brodtekst_form">Stål skydeport</span></td>
                                                                                </tr>
                                                                                <tr height="25">
                                                                                    <td width="77" height="25"></td>
                                                                                    <td valign="bottom" width="323" height="25"><span class="under_mellemrubrik_forms">Profil</span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td width="323" height="20"><input type="radio" name="radiogroup1" value="14_Profil - Fylning" /><span class="brodtekst_form">Fylning</span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td width="323" height="20"><input type="radio" name="radiogroup1" value="15_Profil - Vandret" /><span class="brodtekst_form">Vandret</span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td width="323" height="20"><input type="radio" name="radiogroup1" value="16_ Profil - Glat" /><span class="brodtekst_form">Glat</span></td>
                                                                                </tr>
                                                                                <tr height="25">
                                                                                    <td width="77" height="25"></td>
                                                                                    <td valign="bottom" width="323" height="25"><span class="under_mellemrubrik_forms">Isolering</span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td width="323" height="20"><input type="radio" name="radiogroup2" value="17_Isolering - 20mm" /><span class="brodtekst_form">20 mm</span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td width="323" height="20"><input type="radio" name="radiogroup2" value="18_Isolering - 40mm" /><span class="brodtekst_form">40 mm</span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td width="323" height="20"><input type="radio" name="radiogroup2" value="19_Isolering - Uisoleret" /><span class="brodtekst_form">Uisoleret</span></td>
                                                                                </tr>
                                                                                <tr height="25">
                                                                                    <td width="77" height="25"></td>
                                                                                    <td valign="bottom" width="323" height="25"><span class="under_mellemrubrik_forms">Ruder</span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td width="323" height="20"><input type="radio" name="radiogroup3" value="20_Ruder - Ja" /><span class="brodtekst_form">Ja </span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td width="323" height="20"><input type="radio" name="radiogroup3" value="21_Ruder - Nej" /><span class="brodtekst_form">Nej</span></td>
                                                                                </tr>
                                                                                <tr height="25">
                                                                                    <td width="77" height="25"></td>
                                                                                    <td valign="bottom" width="323" height="25"><span class="under_mellemrubrik_forms">Automatisk</span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td width="323" height="20"><input type="radio" name="radiogroup4" value="22_Automatisk - Ja" /><span class="brodtekst_form">Ja </span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td width="323" height="20"><input type="radio" name="radiogroup4" value="23_Automatisk - Nej" /><span class="brodtekst_form">Nej</span></td>
                                                                                </tr>
                                                                                <tr height="25">
                                                                                    <td width="77" height="25"></td>
                                                                                    <td valign="bottom" width="323" height="25"><span class="under_mellemrubrik_forms">Montage</span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td width="323" height="20"><input type="radio" name="radiogroup5" value="24_Montage - Ja" /><span class="brodtekst_form">Ja</span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td width="323" height="20"><input type="radio" name="radiogroup5" value="25_Montage - Nej" /><span class="brodtekst_form">Nej</span></td>
                                                                                </tr>
                                                                                <tr height="25">
                                                                                    <td width="77" height="25"></td>
                                                                                    <td valign="bottom" width="323" height="25"><span class="under_mellemrubrik_forms">Farve</span></td>
                                                                                </tr>
                                                                                <tr height="20">
                                                                                    <td width="77" height="20"></td>
                                                                                    <td width="323" height="20"><select name="26_Farve" multiple="multiple" >
                                                                                            <option value="Standardhvid (RAL 9016)">Standardhvid (RAL 9016)</option>
                                                                                            <option value="Hvidaluminium (RAL 9006)">Hvidaluminium (RAL 9006)</option>
                                                                                            <option value="Terrabrun (RAL 8028)">Terrabrun (RAL 8028)</option>
                                                                                            <option value="Lerbrun (RAL 8003)">Lerbrun (RAL 8003)</option>
                                                                                            <option value="Okkerbrun (RAL 8001)">Okkerbrun (RAL 8001)</option>
                                                                                            <option value="Grå (RAL 7040)">Grå (RAL 7040)</option>
                                                                                            <option value="Lysegrå (RAL 7035)">Lysegrå (RAL 7035)</option>
                                                                                            <option value="Stengrå (RAL 7030)">Stengrå (RAL 7030)</option>
                                                                                            <option value="Antracitgrå (RAL 7016)">Antracitgrå (RAL 7016)</option>
                                                                                            <option value="Grangrøn (RAL 6009)">Grangrøn (RAL 6009)</option>
                                                                                            <option value="Mosgrøn (RAL 6005)">Mosgrøn (RAL 6005)</option>
                                                                                            <option value="Dueblå (RAL 5014)">Dueblå (RAL 5014)</option>
                                                                                            <option value="Stålblå (RAL 5011)">Stålblå (RAL 5011)</option>
                                                                                            <option value="Safirblå (RAL 5003)">Safirblå (RAL 5003)</option>
                                                                                            <option value="Rubinrød (RAL 3003)">Rubinrød (RAL 3003)</option>
                                                                                            <option value="Lys elfenben (RAL 1015)">Lys elfenben (RAL 1015)</option>
                                                                                        </select></td>
                                                                                </tr>
                                                                            <tr height="25">
                                                                                    <td width="77" height="25"></td>
                                                                                    <td valign="bottom" width="323" height="25"><span class="mellemrubrik_forms">Udfyld venligst nedenstående</span></td>
                                                                                </tr>
                                                                            <tr height="25">
                                                                                    <td width="77" height="25"></td>
                                                                                    <td width="323" height="25">
                                                                                    <table width="300" border="0" cellspacing="0" cellpadding="0" height="23">
                                                                                        <tr height="26">
                                                                                            <td width="60" height="26"><span class="brodtekst_form">Navn</span></td>
                                                                                            <td height="26"><input class="ramme_forms" type="text" name="27_ Navn" size="24" /></td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                                </tr>
                                                                            <tr height="25">
                                                                                    <td width="77" height="25"></td>
                                                                                    <td width="323" height="25">
                                                                                    <table width="300" border="0" cellspacing="0" cellpadding="0" height="23">
                                                                                        <tr height="26">
                                                                                            <td width="60" height="26"><span class="brodtekst_form">Adresse</span></td>
                                                                                            <td height="26"><input class="ramme_forms" type="text" name="28_Adresse" size="24" /></td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                                </tr>
                                                                            <tr height="25">
                                                                                    <td width="77" height="25"></td>
                                                                                    <td width="323" height="25">
                                                                                    <table width="308" border="0" cellspacing="0" cellpadding="0" height="23">
                                                                                        <tr>
                                                                                            <td width="60"><span class="brodtekst_form">Post nr.</span> </td>
                                                                                            <td width="60"><input class="ramme_forms" type="text" name="29_Post nr" size="3" maxlength="4" /></td>
                                                                                            <td width="30"><span class="brodtekst_form">By</span></td>
                                                                                            <td><input class="ramme_forms" type="text" name="30_By" size="9" /><input type="hidden" name="modtager" value="cl@it-mark.dk" /><input type="hidden" name="takside" value="tak.php" /></td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                                </tr>
                                                                            <tr height="25">
                                                                                    <td width="77" height="25"></td>
                                                                                    <td width="323" height="25">
                                                                                    <table width="300" border="0" cellspacing="0" cellpadding="0" height="23">
                                                                                        <tr>
                                                                                            <td width="60"><span class="brodtekst_form">Telefon</span></td>
                                                                                            <td><input class="ramme_forms" type="text" name="31_Telefon" size="24" maxlength="8" /></td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                                </tr>
                                                                            <tr height="25">
                                                                                    <td width="77" height="25"></td>
                                                                                    <td width="323" height="25">
                                                                                    <table width="300" border="0" cellspacing="0" cellpadding="0" height="23">
                                                                                        <tr>
                                                                                            <td width="60"><span class="brodtekst_form">E-mail</span></td>
                                                                                            <td><input class="ramme_forms" type="text" name="32_e-mail" size="24" /></td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                                </tr>
                                                                            <tr height="40">
                                                                                    <td width="77" height="40"></td>
                                                                                    <td valign="bottom" width="323" height="40"><input type="submit" name="submitButtonName" value="Send bestilling" /><input type="reset" name="submitButtonName" value="Ryd alt"/></td>
                                                                                </tr>
                                                                        </table>
                                                                    </form>
Avatar billede jakobdo Ekspert
10. januar 2008 - 17:56 #1
Sender du emailen som iso8859-1 eller utf8 ?
Hvad er den side hvor data sendes fra? (iso8859-1 eller utf8)
Avatar billede snappi-v Nybegynder
11. januar 2008 - 00:28 #2
Kan du slet ikke se tegnene, eller bliver de bare forvanskede?

charmander - det kan det være fordi du ændre æ,ø,å via http://dk2.php.net/htmlentities og så derefter sender mailen afsted som plan/txt.

Se eksempel på funktionen
http://webmoni.dk/kodestumper/htmlentities.phps
Avatar billede charmander1978 Nybegynder
11. januar 2008 - 08:14 #3
Jeg aner ikke om jeg sender mail som iso8859-1 eller utf8  - hvordan finder jeg ud af det?
Avatar billede jakobdo Ekspert
11. januar 2008 - 21:14 #4
Det skal du se i denne side/kode: sider/05-opmaaling/modtag.php
Avatar billede charmander1978 Nybegynder
17. januar 2008 - 08:36 #5
Her er kode på min modtag.php

<?php
$takside = $_POST['takside'];
$modtager = $_POST['modtager'];
    if($takside && $modtager){
        $besked =  "Indsendt formular: \n";
        if($HTTP_POST_VARS){
            $besked .= "Metoden er POST \n";
            foreach($HTTP_POST_VARS as $key=>$value)
                $besked .= $key . "\t = \t" . $value . "\n";
        }
        else{
            $besked .= "Metoden er GET \n";
            foreach($HTTP_GET_VARS as $key=>$value)
                $besked .= $key . "\t = \t" . $value . "\n";
        }
        mail($modtager, "Mailafsendelse fra formular", $besked);
        header("Location:".$takside);
        exit;
    }
    else{
?>
    <html>
    <head>
        <title>Formularmail</title>
    </head>
    <body><!-- DHTML Menu Builder Loader Code START -->
<div id="dmbri" style="position:absolute;">
<img src="../../img/dmb/dmb_i.gif" name="dmbif" width="1" height="1" border="0" alt="">
<img src="../../menu/dmb_m.gif" name="dmbjs" width="1" height="1" border="0" alt="">
</div>
<script language="JavaScript" type="text/javascript">
var rimPath=null;var rjsPath=null;var rPath2Root=null;function InitRelCode(){var iImg;var jImg;var tObj;if(!document.layers){iImg=document.images['dmbif'];jImg=document.images['dmbjs'];tObj=jImg;}else{tObj=document.layers['dmbri'];if(tObj){iImg=tObj.document.images['dmbif'];jImg=tObj.document.images['dmbjs'];}}if(!tObj){window.setTimeout("InitRelCode()",700);return false;}rimPath=_gp(iImg.src);rjsPath=_gp(jImg.src);rPath2Root=rjsPath+"../";return true;}function _purl(u){return xrep(xrep(u,"%%REP%%",rPath2Root),"\\","/");}function _fip(img){if(img.src.indexOf("%%REL%%")!=-1) img.src=rimPath+img.src.split("%%REL%%")[1];return img.src;}function _gp(p){return p.substr(0,p.lastIndexOf("/")+1);}function xrep(s,f,n){if(s) s=s.split(f).join(n);return s;}InitRelCode();
</script>
<script language="JavaScript" type="text/javascript">
function LoadMenus() {if(!rjsPath){window.setTimeout("LoadMenus()", 10);return false;}var navVer = navigator.appVersion;
if(navVer.substr(0,3) >= 4)
if((navigator.appName=="Netscape") && (parseInt(navigator.appVersion)==4)) {
document.write('<' + 'script language="JavaScript" type="text/javascript" src="' + rjsPath + 'nsmenu.js"><\/script\>');
} else {
document.write('<' + 'script language="JavaScript" type="text/javascript" src="' + rjsPath + 'iemenu.js"><\/script\>');
}return true;}LoadMenus();</script>
<!-- DHTML Menu Builder Loader Code END -->
        <b>Der mangler oplysninger!</b><p>
        Det kan skyldes et af f?lgende:<br>
        <li>Denne side er ikke resultatet af en formular
        <li>Formularen indeholder ikke det skjulte felt "modtager"
        <li>Formularen indeholder ikke det skjulte felt "takside"<p>
        <a href="java script:history.back();">Tilbage</a>
    </body>
<?php
    }
?>
Avatar billede jakobdo Ekspert
17. januar 2008 - 19:43 #6
Du bør overveje at kigge på phpmailer - http://phpmailer.codeworxtech.com/
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester



Seneste spørgsmål Seneste aktivitet
I går 17:57 Outlook Af ole1949 i Office & Kontorpakker
I går 17:41 windows cd er ønskes Af bjarnebif i Andet software
I går 17:39 Smartcard Af melli i Fjernsyn & projektorer
I går 15:07 Sammenlægning af partitioner Af Malm i PC
I går 13:59 Lopslag Af Casmic i Excel


White paper
TIDSBEGRÆNSET KAMPAGNE: Overvejer du at udskifte eller tilføje printere i din forretning? Vi kan tilbyde én eller flere maskiner GRATIS.