Den 06-09-04 15:17 skrev Michael følgende:
-----------------------------------------------------------------------------
Hej, jeg har problemer med en mailform, den sender ikke spørgsmålet med, og jeg har dette i Inventory:
"mailto:mivs@heidimus.com?sec=support&action=save&name=&email=&category=0&subject=&question=&send=Send"
Den skriver godtnok kategorien på, men ikke spørgsmålet
Skal jeg poste hele mailformen??
-----------------------------------------------------------------------------
ja tak det må du gerne
- php-4ever
Oki kommer her:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Guldweb Support</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content=ALL name=ROBOTS>
<META content=7 name=revisit-after>
<META content="Guldweb Support."
name=description>
<META content="Guldweb support"
name=keywords>
<META content="Guldweb Support" name=title>
<META content="MSHTML 6.00.2800.1458" name=GENERATOR></HEAD>
<body><DIV
style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; WIDTH: 772px; BORDER-BOTTOM: black 1px solid; BACKGROUND-COLOR: #ffffff" align="center">
<TABLE width="75%" cellSpacing=0 bgcolor="white">
<TBODY>
<TR>
<TD id=content>
<div align="center">
<TABLE cellSpacing=0>
<TBODY>
<TR>
<TD style="VERTICAL-ALIGN: top">
<TABLE cellSpacing=0>
<TBODY>
<TR>
<TD class=boxcontent style="WIDTH: 520px; HEIGHT: 400px">
<DIV id=contentbox align="center">
Udfyld nedenstående formular og vi vil
besvare dit spørgsmål hurtigst muligt.
<FORM name=form action="mailto:mivs@heidimus.com" method=get>
<div align="center">
<INPUT type=hidden
value=support name=sec> <INPUT type=hidden value=save
name=action> <INPUT type=hidden
value=ip name=$remote_addr>
<TABLE cellSpacing=10 cellPadding=0 width="75%" bgcolor="white">
<TBODY>
<TR>
<TD><B>Navn</B></TD>
<TD width="100%"><INPUT
style="FONT: 12px Verdana; WIDTH: 300px"
name=name></TD>
</TR>
<TR>
<TD><B>E-mail</B></TD>
<TD width="100%"><INPUT style="FONT: 12px Verdana; WIDTH: 300px"
name=email></TD>
</TR>
<TR>
<TD><B>Emne</B></TD>
<TD width="100%"><SELECT style="FONT: 12px Verdana"
onchange=changeSubjDD(this.options.selectedIndex)
name=category>
<OPTION value=0
selected>Vælg</OPTION>
<OPTION
value=1>Ris og Ros</OPTION>
<OPTION value=2>Om os</OPTION>
<OPTION value=3>Webhotel</OPTION>
<OPTION
value=4>Andre sider</OPTION>
</SELECT></TD>
</TR>
<TR>
<TD></TD>
<TD width="100%"><SELECT style="FONT: 12px Verdana" disabled
onchange=dispSubjInfo(this[this.options.selectedIndex].value)
name=subject>
<OPTION value="" selected>Vælg
ovenfor</OPTION>
</SELECT></TD>
</TR>
<TR>
<TD vAlign=top><B>Spørgsmål</B></TD>
<TD width="100%"><TEXTAREA style="FONT: 12px Verdana" name=question rows=10 cols=50></TEXTAREA></TD>
</TR>
<TR>
<TD align=middle colSpan=2><INPUT style="FONT: 12px Verdana" onclick=verify() type=button value=Send name=send tabindex="1"></TD>
</TR>
</TBODY>
</TABLE>
</div>
</FORM>
<SCRIPT language=JavaScript type=text/JavaScript>
<!--
var numCats = document.form.category.options.length;
var subj = new Array(numCats);
for (i = 0; i < numCats; i++)
subj[i] = new Array();
subj[0][0] = new Option("Vælg ovenfor", "");
subj[1][0] = new Option("Vælg", "");
subj[1][1] = new Option("Ris", "Ris");
subj[1][2] = new Option("Ros", "Ros");
subj[2][0] = new Option("Vælg", "");
subj[2][1] = new Option("Om Guldweb", "Om Guldweb");
subj[2][2] = new Option("Adresse", "Adresse");
subj[2][3] = new Option("Bank forbindelse", "Bank forbindelse");
subj[2][4] = new Option("Glemt kodeord?", "Glemt kodeord?");
subj[3][0] = new Option("Vælg", "");
subj[3][1] = new Option("Fejl og Mangler", "Fejl og Mangler");
subj[3][2] = new Option("Nye ting", "8");
subj[3][3] = new Option("Driftforstyrrelser", "9");
subj[3][4] = new Option("Andet", "10");
subj[4][0] = new Option("Vælg", "");
subj[4][1] = new Option("Heidimus.com", "11");
subj[4][2] = new Option("Mivs.com", "12");
subj[4][3] = new Option("Andet", "13");
var temp = document.form.subject;
function changeSubjDD(x) {
for (m = temp.options.length-1; m > 0; m--)
temp.options[m] = null;
for (i = 0; i < subj[x].length; i++){
temp.options[i] = new Option(subj[x][i].text, subj[x][i].value);
}
if (x != '0') {
dispSubjInfo(0);
temp.disabled = false;
temp.options[0].selected = true;
temp.focus();
} else {
dispSubjInfo(0);
temp.disabled = true;
}
}
function dispSubjInfo(id) {
var x = document.getElementsByTagName('div');
for (var i = 0; i < x.length; i++) {
if (x[i].className == 'subjInfo') {
x[i].style.display = 'none';
if(x[i].id == id)
x[i].style.display = 'block';
}
}
//document.form.question.focus();
}
function check_email(e) {
ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";
for (i = 0; i < e.length; i++){
if(ok.indexOf(e.charAt(i)) < 0){
return (false);
}
}
if (document.images) {
re = /(@.*@)|(\\.\\.)|(^\\.)|(^@)|(@$)|(\\.$)|(@\\.)/;
re_two = /^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$/;
if (!e.match(re) && e.match(re_two)) {
return (-1);
}
}
}
function verify() {
if (document.form.name.value == '')
alert('Indtast venligst dit navn.');
else if (!check_email(document.form.email.value))
alert('Indtast venligst en gyldig e-mail.');
else if (document.form.category.value == '0' || document.form.subject.value == '')
alert('Du bedes venligst vælge et emne.');
else if (document.form.question.value == '')
alert('Du bedes venligst skrive et spørgsmål.');
else {
document.form.send.disabled = true;
document.form.submit();
}
}
-->
</SCRIPT>
</DIV>
</TD>
</TR>
http://www.mivs.dkhttp://www.onlinehammeren.dk