Formular bygget med Javascript
Hej! :)Jeg bygger følgende form med java:
<SCRIPT LANGUAGE=\"JavaScript\">
function DA() {
DA=window.open(\'\', \'DA\', \'width=1,height=1\');
DA.document.write(\'<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"><meta http-equiv=\"Language\" content=\"Danish\"><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"></head><body><FORM ACTION=\"whatever.asp\" METHOD=\"post\" name=\"DA\"><input type=\"hidden\" name=\"kilde\" value=\"popup\"><input type=\"hidden\" name=\"sponsor\" value=\"DA\"><INPUT TYPE=\"checkbox\" VALUE=\"overlevpakke\" NAME=\"overlevpakke\" checked><INPUT TYPE=\"checkbox\" VALUE=\"kobguide\" NAME=\"kobguide\" checked><INPUT TYPE=\"checkbox\" VALUE=\"typehusguide\" NAME=\"typehusguide\" checked><INPUT TYPE=\"checkbox\" VALUE=\"kalender\" NAME=\"kalender\" checked><INPUT TYPE=\"hidden\" SIZE=\"30\" MAXLENGTH=\"30\" NAME=\"fornavn\" value=\"<%=request(\"fornavn\")%>\"><INPUT TYPE=\"hidden\" SIZE=\"30\" MAXLENGTH=\"30\" NAME=\"efternavn\" value=\"<%=request(\"efternavn\")%>\"><INPUT TYPE=\"hidden\" SIZE=\"30\" MAXLENGTH=\"30\" NAME=\"gadenr\" value=\"<%=request(\"gade\")%>\"><INPUT TYPE=\"hidden\" SIZE=\"8\" MAXLENGTH=\"8\" NAME=\"postnr\" value=\"<%=request(\"postnummer\")%>\"><INPUT TYPE=\"hidden\" SIZE=\"30\" MAXLENGTH=\"30\" NAME=\"by\" value=\"<%=request(\"bynavn\")%>\"><INPUT TYPE=\"hidden\" SIZE=\"30\" MAXLENGTH=\"30\" NAME=\"email\" value=\"<%=request(\"email\")%>\"><input type=\"hidden\" name=\"links\" value=\"www.robinhus.dk\"><input type=\"hidden\" name=\"koberstatus\" value=\"Generel information\"><input type=\"hidden\" name=\"koberboligtype\" value=\"\"><INPUT TYPE=\"hidden\" SIZE=\"8\" MAXLENGTH=\"20\" NAME=\"arb_tlf\" value=\"\"><INPUT TYPE=\"hidden\" SIZE=\"5\" MAXLENGTH=\"5\" NAME=\"arb_fra_kl\" value=\"\"><INPUT TYPE=\"hidden\" SIZE=\"5\" MAXLENGTH=\"5\" NAME=\"arb_til_kl\" value=\"\"><INPUT TYPE=\"hidden\" SIZE=\"8\" MAXLENGTH=\"20\" NAME=\"privat_tlf\" value=\"\"><INPUT TYPE=\"hidden\" SIZE=\"5\" MAXLENGTH=\"5\" NAME=\"privat_fra_kl\" value=\"\"><INPUT TYPE=\"hidden\" SIZE=\"5\" MAXLENGTH=\"5\" NAME=\"privat_til_kl\" value=\"\"></form></body></html>\')
DA.document.DA.submit();
}
</SCRIPT>
Formen bliver opbygget korrekt, og ser korrekt ud (i view source), men når oplysninger i formen når frem er alle ÆØÅ\'er blevet skudt i stykker.... :(
Nogle der har idéer??
PFT
Kim