/ Forside / Teknologi / Udvikling / HTML / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
HTML
#NavnPoint
molokyle 11184
Klaudi 5506
bentjuul 3377
severino 2040
smorch 1950
strarup 1525
natmaden 1396
scootergr.. 1320
e.c 1150
10  miritdk 1110
FORM problem
Fra : Telekort


Dato : 17-10-02 15:33

Hejsa Nyhedsgruppe...

Jeg har et problem.. jeg skal have sendt nedenstående form til
min e-mail samtidig med at oplysningerne om dankort/visa bliver
sendt til Freeway, men jeg kan ikke få det til at virke... Enten
sender formen de indtastede oplysninger til min e-mail, eller
også til freeway. Det er en "enten eller" situation som gerne
skulle blive til "både og..."

På forhånd tak for hjælpen...

/Telekort.net


<html>
<head>
<title>Bestilling</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<style type="text/css">
<!--
td { font-family: Arial, Helvetica, sans-serif; font-size: 12px}
h5 { margin-bottom: 0px}
-->
</style>
<script language="JavaScript">
<!--
function beregningTotal () {
var total = 0;
var sum1 = 0;
var sum2 = 0;
var sum3 = 0;
var sum4 = 0;
var sum5 = 0;
var sum6 = 0;
var sum7 = 0;
var sum8 = 0;
var sum9 = 0;
var sum10 = 0;
var sum11 = 0;
var sum12 = 0;
var sum13 = 0;
var sum14 = 0;
var sum15 = 0;
var sum16 = 0;
var sum17 = 0;
var sum18 = 0;
var sum19 = 0;
var sum20 = 0;
var sum20d = 0;
var sum21 = 0;
var sum22 = 0;
var sum22d = 0;
var sum23 = 0;
var sum24 = 0;
var sum25 = 0;
var sum26 = 0;
var sum27 = 0;
var sum28 = 0;
var sum29 = 0;
var sum30 = 0;
var sum31 = 0;
var sum32 = 0;
var sum33 = 0;
var sum34 = 0;
var sum35 = 0;

sum1=(100 * document.bestilling.prod1a.value);
document.bestilling.prod1a_total.value=sum1;
sum2=(100 * document.bestilling.prod1b.value);
document.bestilling.prod1b_total.value=sum2;
sum3=(100 * document.bestilling.prod1c.value);
document.bestilling.prod1c_total.value=sum3;
sum4=(100 * document.bestilling.prod2a.value);
document.bestilling.prod2a_total.value=sum4;
sum5=(100 * document.bestilling.prod2b.value);
document.bestilling.prod2b_total.value=sum5;
sum6=(100 * document.bestilling.prod2c.value);
document.bestilling.prod2c_total.value=sum6;
sum7=(100 * document.bestilling.prod3a.value);
document.bestilling.prod3a_total.value=sum7;
sum8=(100 * document.bestilling.prod3b.value);
document.bestilling.prod3b_total.value=sum8;
sum9=(100 * document.bestilling.prod3c.value);
document.bestilling.prod3c_total.value=sum9;
sum10=(100 * document.bestilling.prod4a.value);
document.bestilling.prod4b_total.value=sum10;
sum11=(100 * document.bestilling.prod4b.value);
document.bestilling.prod4b_total.value=sum11;
sum12=(100 * document.bestilling.prod4c.value);
document.bestilling.prod4c_total.value=sum12;
sum13=(100 * document.bestilling.prod5a.value);
document.bestilling.prod5a.value=sum13;
sum14=(100 * document.bestilling.prod5b.value);
document.bestilling.prod5b_total.value=sum14;
sum15=(100 * document.bestilling.prod5c.value);
document.bestilling.prod5c_total.value=sum15;
sum16=(100 * document.bestilling.prod6a.value);
document.bestilling.prod6a_total.value=sum16;
sum17=(100 * document.bestilling.prod6b.value);
document.bestilling.prod6b_total.value=sum15;
sum18=(100 * document.bestilling.prod6c.value);
document.bestilling.prod6c_total.value=sum16;

document.bestilling.Amount.value =
sum1+sum2+sum3+sum4+sum5+sum6+sum7+sum8+sum9+sum10+sum11+sum12+su
m13+sum14+sum15+sum16+sum17;
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for
(i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_changeProp(objName,x,theProp,theValue) { //v3.0
var obj = MM_findObj(objName);
if (obj && (theProp.indexOf("style.")==-1 || obj.style))
eval("obj."+theProp+"='"+theValue+"'");
}
//-->
</script>

</head>

<body bgcolor="#FFFFFF" text="#000000" link="#FF0000">

<form name="bestilling" method="post" action="FORMMAIL">
<div align="center">
<input type="hidden" name="MerchantNumber" value="2986108">
<input type="hidden" name="Currency" value="208">
<input type="hidden" name="AcceptURL"
value="https://pay.freeway.dk/ok.asp">
<input type="hidden" name="DeclineURL"
value="https://pay.freeway.dk/ikkeok.asp">
<input type="hidden" name="OrderNumber" value="2330">
<input type="hidden" name="email" value="info@telekort.net">
<input type="hidden" name="redirect"
value="http://telekort.net/tak.htm">
<input type="hidden" name="required"
value="realname,email,adresse,postnummer,by">
<input type="hidden" name="recipient"
value="info@telekort.dk">
<table width="603" border="0" cellspacing="5" cellpadding="0"
bgcolor="#FFFFFF" height="1">
<tr>
<td colspan="3" width="589" height="18">
<h5>Produkt 1</h5>
</td>
</tr>
<tr valign="top">
<td width="236" height="1">&nbsp;</td>
<td colspan="2" width="345" height="1">
<p>&nbsp;</p>
</td>
</tr>
<tr>
<td colspan="2" width="237" height="1">Jeg bestiller:
<input type="text" name="prod1a"
onChange="beregningTotal();" size="3" maxlength="3">
stk. &aacute; kr. 98.-</td>
<td align="right" width="344" height="1">Ialt kr.
<input type="text" name="prod1a_total"
onChange="beregningTotal();" size="5" maxlength="5">
</td>
</tr>
<tr>
<td width="238" height="1">
Jeg bestiller:
<input type="text" name="prod1b"
onChange="beregningTotal();" size="3" maxlength="3">
stk. &aacute; kr. 50.-
</td>
<td colspan="2" width="347" height="1">
<p align="right">Ialt kr.
<input type="text" name="prod1b_total"
onChange="beregningTotal();" size="5" maxlength="5">
</p>
</td>
</tr>
<tr>
<td width="238" height="1">
Jeg bestiller:
<input type="text" name="prod1c"
onChange="beregningTotal();" size="3" maxlength="3">
stk. &aacute; kr. 44.-
</td>
<td colspan="2" width="347" height="1">
<p align="right">Ialt kr.
<input type="text" name="prod1c_total"
onChange="beregningTotal();" size="5" maxlength="5">
</p>
</td>
</tr>
</table>
<table width="603" border="0" cellspacing="10"
cellpadding="0" bgcolor="#FFFFFF" height="1">
<tr>
<td colspan="3" width="581" height="18">
<h5>Produkt 2</h5>
</td>
</tr>
<tr valign="top">
<td width="196" height="1">&nbsp;</td>
<td colspan="2" width="373" height="1">&nbsp;</td>
</tr>
<tr>
<td colspan="2" width="388" height="1"> Jeg bestiller:
<input type="text" name="prod2a"
onChange="beregningTotal();" size="3" maxlength="3">
stk. &aacute; kr. 65.-</td>
<td align="right" width="100%" height="1"> Ialt kr.
<input type="text" name="prod2a_total"
onChange="beregningTotal();" size="5" maxlength="5">
</td>
</tr>
<tr>
<td colspan="2" width="388" height="1">Jeg bestiller:
<input type="text" name="prod2b"
onChange="beregningTotal();" size="3" maxlength="3">
stk. &aacute; kr. 4000.-</td>
<td align="right" width="100%" height="1">Ialt kr.
<input type="text" name="prod2b_total"
onChange="beregningTotal();" size="5" maxlength="5">
</td>
</tr>
<tr>
<td colspan="2" width="388" height="7">Jeg bestiller:
<input type="text" name="prod2c"
onChange="beregningTotal();" size="3" maxlength="3">
stk. á kr. 249.-</td>
<td align="right" width="100%" height="7">Ialt kr.
<input type="text" name="prod2c_total"
onChange="beregningTotal();" size="5" maxlength="5">
</td>
</tr>
</table>
<table width="604" border="0" cellspacing="10"
cellpadding="0" bgcolor="#FFFFFF" height="491">
<tr>
<td colspan="2" height="1" width="582">
&nbsp;
</td>
</tr>
<tr>
<td colspan="2" height="1" width="582">
<h5>Produkt 3</h5>
</td>
</tr>
<tr>
<td height="26" width="230">Jeg bestiller:
<input type="text" name="prod3a"
onChange="beregningTotal();" size="3" maxlength="3">
stk. &aacute; kr. 150.-</td>
<td align="right" height="26" width="340">Ialt kr.
<input type="text" name="prod3a_total"
onChange="beregningTotal();" size="5" maxlength="5">
</td>
</tr>
<tr>
<td height="26" width="230">Jeg bestiller:
<input type="text" name="prod3b"
onChange="beregningTotal();" size="3" maxlength="3">
stk. á kr. 90.-</td>
<td align="right" height="26" width="340">Ialt kr.
<input type="text" name="prod3b_total"
onChange="beregningTotal();" size="5" maxlength="5">
</td>
</tr>
<tr>
<td height="26" width="230">Jeg bestiller:
<input type="text" name="prod3c"
onChange="beregningTotal();" size="3" maxlength="3">
stk. &aacute; kr. 70.-</td>
<td align="right" height="26" width="340">Ialt kr.
<input type="text" name="prod3c_total"
onChange="beregningTotal();" size="5" maxlength="5">
</td>
</tr>
<tr>
<td colspan="2" height="19" width="582">
<h5>Produkt 4</h5>
</td>
</tr>
<tr>
<td height="26" width="230">Jeg bestiller:
<input type="text" name="prod4a"
onChange="beregningTotal();" size="3" maxlength="3">
stk. &aacute; kr. 90.-</td>
<td align="right" height="26" width="340">Ialt kr.
<input type="text" name="prod4a_total"
onChange="beregningTotal();" size="5" maxlength="5">
</td>
</tr>
<tr>
<td height="26" width="230">Jeg bestiller:
<input type="text" name="prod4b"
onChange="beregningTotal();" size="3" maxlength="3">
stk. &aacute; kr. 130.-</td>
<td align="right" height="26" width="340">Ialt kr.
<input type="text" name="prod4b_total"
onChange="beregningTotal();" size="5" maxlength="5">
</td>
</tr>
<tr>
<td height="26" width="230">Jeg bestiller:
<input type="text" name="prod4c"
onChange="beregningTotal();" size="3" maxlength="3">
stk. &aacute; kr. 100.-</td>
<td align="right" height="26" width="340">Ialt kr.
<input type="text" name="prod4c_total"
onChange="beregningTotal();" size="5" maxlength="5">
</td>
</tr>
<tr>
<td colspan="2" height="18" width="582">
<h5>Produkt 5</h5>
</td>
</tr>
<tr>
<td height="14" width="230">Jeg bestiller:
<input type="text" name="prod5a"
onChange="beregningTotal();" size="3" maxlength="3">
stk. &aacute; kr. 110.-</td>
<td width="340" align="right" height="14">Ialt kr.
<input type="text" name="prod5a_total"
onChange="beregningTotal();" size="5" maxlength="5">
</td>
</tr>
<tr>
<td height="1" width="230">Jeg bestiller:
<input type="text" name="prod5b"
onChange="beregningTotal();" size="3" maxlength="3">
stk. &aacute; kr. 100.-</td>
<td width="340" align="right" height="1">Ialt kr.
<input type="text" name="prod5b_total"
onChange="beregningTotal();" size="5" maxlength="5">
</td>
</tr>
<tr>
<td height="1" width="230">Jeg bestiller:
<input type="text" name="prod5c"
onChange="beregningTotal();" size="3" maxlength="3">
stk. &aacute; kr. 240.-</td>
<td width="340" align="right" height="1">Ialt kr.
<input type="text" name="prod5c_total"
onChange="beregningTotal();" size="5" maxlength="5">
</td>
</tr>
</table>
<table width="603" border="0" cellspacing="10"
cellpadding="0" bgcolor="#FFFFFF" height="92">
<tr>
<td colspan="2" height="18" width="581">
<h5>Produkt 6</h5>
</td>
</tr>
<tr valign="top">
<td colspan="2" height="1" width="581">&nbsp;</td>
</tr>
<tr>
<td width="305" nowrap height="25">Jeg bestiller:
<input type="text" name="prod6"
onChange="beregningTotal();" size="3" maxlength="3">
stk. &aacute; kr. 240.-</td>
<td width="264" align="right" height="25">Ialt kr.
<input type="text" name="prod6a_total"
onChange="beregningTotal();" size="5" maxlength="5">
</td>
</tr>
<tr>
<td height="7" width="307">
Jeg bestiller:
<input type="text" name="prod6b"
onChange="beregningTotal();" size="3" maxlength="3">
stk. &aacute; kr. 145.-
</td>
<td height="7" width="266">
<p align="right">Ialt kr.
<input type="text" name="prod6b_total"
onChange="beregningTotal();" size="5" maxlength="5">
</td>
</tr>
<tr>
<td height="8" width="307">
Jeg bestiller:
<input type="text" name="prod6c"
onChange="beregningTotal();" size="3" maxlength="3">
stk. &aacute; kr. 155.-
</td>
<td height="8" width="266">
<p align="right">Ialt kr.
<input type="text" name="prod6c_total"
onChange="beregningTotal();" size="5" maxlength="5">
</p>
</td>
</tr>
</table>
<table width="603" border="0" cellspacing="10"
cellpadding="0" bgcolor="#FFFFFF">
<tr>
<td width="176">&nbsp;</td>
<td width="151" align="center" valign="top">
<input type="button" name="beregn" value="Beregn samlet
pris">
</td>
<td width="236" align="right" bgcolor="#003366">
<div align="center"><font color="#FFFFFF"><b>Samlet pris Ialt
DDK.:</b>
</font>
<input type="text" name="Amount" size="7"
maxlength="7">
</div>
</td>
</tr>
<tr>
<td colspan="3">
<hr width="100%" size="2" noshade>
</td>
</tr>
<tr>
<td width="176">
<h5>Navn:</h5>
</td>
<td width="151">
<input type="text" name="realname" size="30"
maxlength="30">
</td>
<td width="236" align="right">&nbsp;</td>
</tr>
<tr>
<td width="176">
<h5>Adresse:</h5>
</td>
<td width="151">
<input type="text" name="adresse" size="30"
maxlength="30">
</td>
<td width="236">&nbsp;</td>
</tr>
<tr>
<td width="176">
<h5>Postnummer:</h5>
</td>
<td width="151">
<input type="text" name="postnummer" size="4"
maxlength="4">
</td>
<td width="236">&nbsp;</td>
</tr>
<tr>
<td width="176">
<h5>By:</h5>
</td>
<td width="151">
<input type="text" name="by" size="30" maxlength="30">
</td>
<td width="236">&nbsp;</td>
</tr>
<tr>
<td width="176">
<h5>Telefon:</h5>
</td>
<td width="151">
<input type="text" name="telefon" size="15"
maxlength="15">
</td>
<td width="236">&nbsp;</td>
</tr>
<tr>
<td colspan="3">
<hr width="100%" size="1" noshade>
</td>
</tr>
<tr>
<td width="176">
<h5>Betalingsform:</h5>
</td>
<td colspan="2">
<input type="radio" name="bform" value="giro">
Bankoverførsel&nbsp;</td>
</tr>
<tr>
<td width="176">&nbsp;</td>
<td>
<input type="radio" name="bform" value="check">
Check </td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td width="176">&nbsp;</td>
<td>
<input type="radio" name="bform" value="dankort"
onClick="MM_changeProp('bestilling','','action','https://pay.free
way.dk/secure/capture.asp','FORM')">
Visa/Dankort <img src="dan-xs.gif" width="32"
height="20"></td>
<td>&nbsp;</td>
</tr>
<tr>
<td width="176">
<h5>Kortnummer:</h5>
</td>
<td width="151">
<input type="text" autocomplete="off" name="CardNumber"
size="20">
</td>
<td width="236" nowrap>
<h5>Kontrolcifre:
<input type="text" autocomplete="off" name="cvc"
size="3" maxlength="3">
</h5>
</td>
</tr>
<tr>
<td width="176">
<h5>Udl&oslash;bsdato(MM/&Aring;&Aring;):</h5>
</td>
<td width="151">
<input type="text" autocomplete=off name="ExpireMonth"
size="2" maxlength="2">
/
<input type="text" autocomplete=off name="ExpireYear"
size="2" maxlength="2">
</td>
<td width="236">&nbsp;</td>
</tr>
<tr>
<td colspan="3">14 dages returret i ubrudt
emballage.</td>
</tr>
<tr>
<td width="176">
<input type="submit" name="send" value="Send
bestilling">
</td>
<td width="151">
<input type="reset" name="slet" value="Slet alt">
</td>
<td width="236" align="right">&nbsp; </td>
</tr>
</table>
</div>
</form>
<p align="center">&nbsp;</p>
</body>
</html>


--
Vil du lære at kode HTML, XHTML, CSS, SSI eller ASP ???
- Pædagogiske tutorials på dansk
- Kom godt i gang med koderne
KLIK HER! => http://www.html.dk/tutorials

 
 
Lasse Reichstein Nie~ (17-10-2002)
Kommentar
Fra : Lasse Reichstein Nie~


Dato : 17-10-02 16:06

Telekort <info@telekort.net> writes:

> Jeg har et problem.. jeg skal have sendt nedenstående form til
> min e-mail samtidig med at oplysningerne om dankort/visa bliver
> sendt til Freeway, men jeg kan ikke få det til at virke... Enten
> sender formen de indtastede oplysninger til min e-mail, eller
> også til freeway. Det er en "enten eller" situation som gerne
> skulle blive til "både og..."

En form bliver sendt som en http-request, så spørgsmålet må være hvem
der skal sende en side som svar på requesten ... det er der i sagens
natur kun en der kan gøre, lige som man ikke kan klikke på to links på
samme tid. Den server der får dataene fra formen må så sørge for at
sende information videre i det omfang det er nødvendigt.

Alternativt kan du måske åbne et nyt vindue med en ny form med kun de
informationer der skal sendes til Freeway, og så submitte den og lukke
vinduet når den er færdig.

/L
--
Lasse Reichstein Nielsen - lrn@hotpop.com
'Faith without judgement merely degrades the spirit divine.'

Søg
Reklame
Statistik
Spørgsmål : 177556
Tips : 31968
Nyheder : 719565
Indlæg : 6408865
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste