Just nu i M3-nätverket
Jump to content

Skicka resultat via mail.


MrHall

Recommended Posts

Flyttar tråden till ASP

 

/OZn - Moderator för ASP.NET_______________________________________________________

Microchips - De små potatisflingorna du äter allra sist i chipspåsen

 

Link to comment
Share on other sites

[log]

<head>

<meta name="description" content="Ball-faktor">

<title>Är Du ballast på festen?</title>

<style fprolloverstyle>A:hover {color: #FF6600}

</style>

<script language="JavaScript">

<!--

function FP_swapImg() {//v1.0

var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;

n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;

elm.$src=elm.src; elm.src=args[n+1]; } }

}

 

function FP_preloadImgs() {//v1.0

var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();

for(var i=0; i<a.length; i++) { d.FP_imgs=new Image; d.FP_imgs.src=a; }

}

 

function FP_getObjectByID(id,o) {//v1.0

var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);

else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;

if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if©

for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }

f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;

for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }

return null;

}

// -->

</script>

</head>

 

 

<script language="JavaScript">

<!--

 

function SymError()

{

return true;

}

 

window.onerror = SymError;

 

var SymRealWinOpen = window.open;

 

function SymWinOpen(url, name, attributes)

{

return (new Object());

}

 

window.open = SymWinOpen;

 

//-->

</script>

 

<script type="text/javascript">

var radio1_value="";

var radio2_value="";

var radio3_value="";

var radio4_value="";

var radio5_value="";

var radio6_value="";

var radio7_value="";

var radio8_value="";

var radio9_value="";

var radio10_value="";

 

function check() {

if(radio1_value=="" || radio2_value=="" || radio3_value=="" || radio4_value=="" || radio5_value=="" || radio6_value=="" || radio7_value=="" || radio8_value==""

|| radio9_value=="" || radio10_value=="") {

alert("Du måste besvara alla frågor");

return false;

} else {

return summera();

}

}

function summera() {

var summa = ((parseInt(radio1_value) + parseInt(radio2_value) + parseInt(radio3_value) + parseInt(radio4_value) + parseInt(radio5_value) + parseInt(radio6_value)

+ parseInt(radio7_value) + parseInt(radio8_value) + parseInt(radio9_value) + parseInt(radio10_value))/6);

document.getElementById('summa').value=(Math.round(summa));

return false;

}

function checkSumma(form) {

if (form.summa.value=="") {

alert("Beräkna en Ball-faktor först");

return false

}

if (form.utmanare.value=="") {

alert("Fyll i utamanare!");

form.utmanare.focus();

return false;

}

if (form.utmanaresmail.value=="") {

alert("Fyll i utmanaresmail!");

form.utmanaresmail.focus();

return false;

}

if (form.kompis.value=="") {

alert("Fyll i kompis!");

form.kompis.focus();

return false;

}

if (form.kompismail.value=="") {

alert("Fyll i kompismail!");

form.kompismail.focus();

return false;

}</script>

 

<body bgcolor="#A79FFD" link="#000000" vlink="#000000" alink="#000000" onload="FP_preloadImgs(/*url*/'button3E.jpg', /*url*/'button3F.jpg')">

<form action="utmana.asp" onsubmit="javascript:return checkSumma(this)";>

<table border="0" cellspacing="1" style="border-collapse: collapse" width="400" height="100" id="table1">

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">Är Du ballast på festen?</font></td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">Hur ball är Du på en

skala från 1 till 10? Testa Din &quot;ball-faktor&quot;!</font></td>

</tr>

<tr>

<td>&nbsp;</td>

<td width="130" colspan="2">&nbsp;</td>

<td width="105" colspan="2">&nbsp;</td>

<td width="8">&nbsp;</td>

<td width="84" colspan="2">&nbsp;</td>

<td width="81" colspan="2">&nbsp;</td>

<td width="64">&nbsp;</td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">1. Hur laddar Du upp inför festen?</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="1" onclick="radio1_value='5'" value="5" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Går på förfest</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="1" onclick="radio1_value='6'" value="6" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Fixar en förfest</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="1" onclick="radio1_value='2'" value="2" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Kollar min e-mail</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="1" onclick="radio1_value='1'" value="1" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Kollar på TV</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="1" onclick="radio1_value='4'" value="4" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Klämmer ett par bira/cider</font></td>

</tr>

<tr>

<td align="center">

<p align="center"><font face="Kristen ITC">

<input type="Radio" name="1" onclick="radio1_value='3'" value="3" style="float: left"></font></td>

<td colspan="10" align="left"><font face="Kristen ITC" size="2">Provar alla kläder i garderoben</font></td>

</tr>

<tr>

<td colspan="11">&nbsp;</td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">2. Vad har Du på Dig till festen?</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="2" onclick="radio2_value='4'" value="4" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Det som är inne just nu</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="2" onclick="radio2_value='3'" value="3" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Inga underkläder</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="2" onclick="radio2_value='2'" value="2" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Kostym/klänning</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="2" onclick="radio2_value='5'" value="5" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Något som absolut ingen annan

skulle ha på sig</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="2" onclick="radio2_value='6'" value="6" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Spelar ingen roll, ball ändå</font></td>

</tr>

<tr>

<td align="center">

<p align="center"><font face="Kristen ITC">

<input type="Radio" name="2" onclick="radio2_value='1'" value="1" style="float: left"></font></td>

<td colspan="10" align="left"><font face="Kristen ITC" size="2">Det som ligger framme</font></td>

</tr>

<tr>

<td colspan="11">&nbsp;</td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">3. Hur tar Du Dig till festen?</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="3" onclick="radio3_value='3'" value="3" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Cyklar</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="3" onclick="radio3_value='1'" value="1" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Tar min värstingbil</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="3" onclick="radio3_value='4'" value="4" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Åker buss</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="3" onclick="radio3_value='5'" value="5" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Går</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="3" onclick="radio3_value='6'" value="6" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Åker taxi</font></td>

</tr>

<tr>

<td align="center">

<p align="center"><font face="Kristen ITC">

<input type="Radio" name="3" onclick="radio3_value='2'" value="2" style="float: left"></font></td>

<td colspan="10" align="left"><font face="Kristen ITC" size="2">Mamma skjutsar</font></td>

</tr>

<tr>

<td colspan="11">&nbsp;</td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">4. Hur gör Du entré?</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="4" onclick="radio4_value='4'" value="4" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Presenterar mig för alla</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="4" onclick="radio4_value='6'" value="6" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Ropar; &quot;Nu är jag här!&quot;</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="4" onclick="radio4_value='2'" value="2" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Ropar; &quot;Var är spriten!?&quot;</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="4" onclick="radio4_value='3'" value="3" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Smyger in och skrämmer alla</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="4" onclick="radio4_value='5'" value="5" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Klättrar in genom ett fönster</font></td>

</tr>

<tr>

<td align="center">

<p align="center"><font face="Kristen ITC">

<input type="Radio" name="4" onclick="radio4_value='1'" value="1" style="float: left"></font></td>

<td colspan="10" align="left"><font face="Kristen ITC" size="2">Är redan där när alla kommer</font></td>

</tr>

<tr>

<td colspan="11">&nbsp;</td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">5. Vad dricker Du på festen?</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="5" onclick="radio5_value='3'" value="3" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Grogg</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="5" onclick="radio5_value='5'" value="5" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Öl/cider</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="5" onclick="radio5_value='4'" value="4" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Vin</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="5" onclick="radio5_value='6'" value="6" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Vad som bjuds</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="5" onclick="radio5_value='1'" value="1" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Läsk eller mineralvatten</font></td>

</tr>

<tr>

<td align="center">

<p align="center"><font face="Kristen ITC">

<input type="Radio" name="5" onclick="radio5_value='2'" value="2" style="float: left"></font></td>

<td colspan="10" align="left"><font face="Kristen ITC" size="2">Så lite som möjligt</font></td>

</tr>

<tr>

<td colspan="11">&nbsp;</td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">6. Vilka snackar Du med?</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="6" onclick="radio6_value='4'" value="4" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Värden/värdinnan</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="6" onclick="radio6_value='5'" value="5" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Bara av det motsatta könet</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="6" onclick="radio6_value='6'" value="6" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Alla som verkar vara balla</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="6" onclick="radio6_value='1'" value="1" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">De som verkar vara mesar</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="6" onclick="radio6_value='3'" value="3" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">De som dricker mest</font></td>

</tr>

<tr>

<td align="center">

<p align="center"><font face="Kristen ITC">

<input type="Radio" name="6" onclick="radio6_value='2'" value="2" style="float: left"></font></td>

<td colspan="10" align="left"><font face="Kristen ITC" size="2">Ingen, skickar SMS istället</font></td>

</tr>

<tr>

<td colspan="11">&nbsp;</td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">7. Vilket är samtalsämnet?</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="7" onclick="radio7_value='6'" value="6" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Brudar/killar</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="7" onclick="radio7_value='2'" value="2" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Musik, film eller böcker</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="7" onclick="radio7_value='5'" value="5" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Samhällsfrågor</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="7" onclick="radio7_value='4'" value="4" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Dina nya kläder</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="7" onclick="radio7_value='1'" value="1" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Skitsnack om folk på festen</font></td>

</tr>

<tr>

<td align="center">

<p align="center"><font face="Kristen ITC">

<input type="Radio" name="7" onclick="radio7_value='6'" value="3" style="float: left"></font></td>

<td colspan="10" align="left"><font face="Kristen ITC" size="2">Din utbildning</font></td>

</tr>

<tr>

<td colspan="11">&nbsp;</td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">8. Vilket är Ditt bästa partytrick?</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="8" onclick="radio8_value='6'" value="6" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Practical jokes</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="8" onclick="radio8_value='1'" value="1" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Moona</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="8" onclick="radio8_value='4'" value="4" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Halsa fem öl utan att andas</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="8" onclick="radio8_value='3'" value="3" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Strippa</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="8" onclick="radio8_value='5'" value="5" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Berätta roliga historier</font></td>

</tr>

<tr>

<td align="center">

<p align="center"><font face="Kristen ITC">

<input type="Radio" name="8" onclick="radio8_value='2'" value="2" style="float: left"></font></td>

<td colspan="10" align="left"><font face="Kristen ITC" size="2">Visa Dina Kung Fu moves</font></td>

</tr>

<tr>

<td colspan="11">&nbsp;</td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">9. Vilken är Din viktigaste uppgift på festen?</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="9" onclick="radio9_value='2'" value="2" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Sköta stereon</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="9" onclick="radio9_value='6'" value="6" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Blanda alla de nyaste drinkarna</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="9" onclick="radio9_value='3'" value="3" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Bjuda dit mer folk</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="9" onclick="radio9_value='5'" value="5" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Knyta ihop alla skosnören</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="9" onclick="radio9_value='4'" value="4" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Gömma alla jackor</font></td>

</tr>

<tr>

<td align="center">

<p align="center"><font face="Kristen ITC">

<input type="Radio" name="9" onclick="radio9_value='1'" value="1" style="float: left"></font></td>

<td colspan="10" align="left"><font face="Kristen ITC" size="2">Äta upp all mat i kylen</font></td>

</tr>

<tr>

<td colspan="11">&nbsp;</td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">10. Hur avslutar Du festkvällen?</font></td>

</tr>

<tr>

<td width="26"><font face="Kristen ITC">

<input type="Radio" name="10" onclick="radio10_value='4'" value="4" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Däckar på dass</font></td>

</tr>

<tr>

<td width="26"><font face="Kristen ITC">

<input type="Radio" name="10" onclick="radio10_value='6'" value="6" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Drar ut på stan</font></td>

</tr>

<tr>

<td width="26"><font face="Kristen ITC">

<input type="Radio" name="10" onclick="radio10_value='5'" value="5" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Går med någon hem</font></td>

</tr>

<tr>

<td width="26"><font face="Kristen ITC">

<input type="Radio" name="10" onclick="radio10_value='1'" value="1" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Mamma hämtar mig efter

22-nyheterna</font></td>

</tr>

<tr>

<td width="26"><font face="Kristen ITC">

<input type="Radio" name="10" onclick="radio10_value='2'" value="2" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Hjälper till att städa</font></td>

</tr>

<tr>

<td>

<p align="center"><font face="Kristen ITC">

<input type="Radio" name="10" onclick="radio10_value='3'" value="3" style="float: left"></font></td>

<td colspan="10" align="left"><font face="Kristen ITC" size="2">Dricker upp det sista i alla kvarlämnade

glas</font></td>

</tr>

<tr>

<td colspan="11">&nbsp;</td>

</tr>

<tr>

<td width="535" colspan="11">&nbsp;</td>

</tr>

<tr>

<td width="537" align="center" colspan="11"><font face="Kristen ITC">

<input type="button" value="Beräkna Ball-faktor" onclick="javascript:return check()"></font></td>

</tr>

<tr>

<td width="537" colspan="11" align="center">&nbsp;</td>

</tr>

<tr>

<td width="537" colspan="11" align="center"><font face="Kristen ITC">

<font size="2">På en ball-skala från 1 till 10 är Du en: </font>

<input id="summa" name="summa" size="2"><font size="2">:a</font></font></td>

</tr>

<tr>

<td width="537" colspan="11" align="center">&nbsp;</td>

</tr>

<tr>

<td width="537" colspan="11" align="center">

<div style="position: absolute; width: 89px; height: 26px; z-index: 4; left: 131px; top: 2254px" id="GoBack">

<font face="Kristen ITC" size="2">

<a href="../tests.htm">

<img border="0" id="img2" src="button3D.jpg" height="28" width="139" alt="Tillbaka!" onmouseover="FP_swapImg(1,0,/*id*/'img2',/*url*/'button3E.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img2',/*url*/'button3D.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img2',/*url*/'button3F.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img2',/*url*/'button3E.jpg')" fp-style="fp-btn: Metal Rectangle 5; fp-font: Kristen ITC; fp-font-style: Bold; fp-font-size: 14" fp-title="Tillbaka!"></a></font></div>

<p><font face="Kristen ITC" size="2">Utmana en kompis!</font></td>

</tr>

<tr>

<td width="537" colspan="11" align="center">

&nbsp;</td>

</tr>

<tr>

<td width="25%" colspan="4" align="left">

<font face="Kristen ITC" size="2">Ditt namn:</font></td>

<td colspan="7" align="left" width="50%">

<input type="text" name="utmanare" size="28"></td>

</tr>

<tr>

<td width="25%" colspan="4" align="left">

<font face="Kristen ITC" size="2">Din e-post:</font></td>

<td colspan="7" align="left" width="50%">

<input type="text" name="utmanaresmail" size="28"></td>

</tr>

<tr>

<td width="50%" colspan="11" align="left">

&nbsp;</td>

</tr>

<tr>

<td width="50%" colspan="4" align="left">

<font face="Kristen ITC" size="2">Din kompis namn:</font></td>

<td colspan="7" align="left" width="50%">

<input type="text" name="kompis" size="28"></td>

</tr>

<tr>

<td width="50%" colspan="4" align="left">

<font face="Kristen ITC" size="2">Din kompis e-post:</font></td>

<td colspan="7" align="left" width="50%">

<input type="text" name="kompismail" size="28"></td>

</tr>

<tr>

<td width="108" colspan="2" align="left">

&nbsp;</td>

<td width="108" colspan="2" align="left">

&nbsp;</td>

<td width="59" colspan="3" align="left">

&nbsp;</td>

<td width="107" colspan="2" align="left">

&nbsp;</td>

<td width="107" colspan="2" align="left">

&nbsp;</td>

</tr>

<tr>

<td width="538" colspan="11" align="center">

<input type="submit" value="Skicka utmaning!" name="Skicka"></td>

</tr>

<tr>

<td width="108" colspan="2" align="left">

&nbsp;</td>

<td width="108" colspan="2" align="left">

&nbsp;</td>

<td width="59" colspan="3" align="left">

&nbsp;</td>

<td width="107" colspan="2" align="left">

&nbsp;</td>

<td width="107" colspan="2" align="left">

&nbsp;</td>

</tr>

<tr>

<td width="108" colspan="2" align="left">

&nbsp;</td>

<td width="108" colspan="2" align="left">

&nbsp;</td>

<td width="59" colspan="3" align="left">

&nbsp;</td>

<td width="107" colspan="2" align="left">

&nbsp;</td>

<td width="107" colspan="2" align="left">

&nbsp;</td>

</tr>

<tr>

<td width="108" colspan="2" align="left">

&nbsp;</td>

<td width="108" colspan="2" align="left">

&nbsp;</td>

<td width="59" colspan="3" align="left">

&nbsp;</td>

<td width="107" colspan="2" align="left">

&nbsp;</td>

<td width="107" colspan="2" align="left">

&nbsp;</td>

</tr>

<tr>

<td width="108" colspan="2" align="left">

&nbsp;</td>

<td width="108" colspan="2" align="left">

&nbsp;</td>

<td width="59" colspan="3" align="left">

&nbsp;</td>

<td width="107" colspan="2" align="left">

&nbsp;</td>

<td width="107" colspan="2" align="left">

&nbsp;</td>

</tr>

</table>

</form>

</body>[/log]

 

Så ser koden ut nu...

Men nu händer ingenting alls!

 

Ingen beräkning görs heller!

 

/Jag

 

Link to comment
Share on other sites

Micke_skane

Du måste stänga function checkSumma(form) { , så sätt en } sist i den funktionen, efter sista if-satsen!

 

Sen har du inte satt textfältet som ska innehålla Ball-Faktorn till att bara vara readonly.

Så sätt det så här i den taggen:

<input type="text" id="summa" name="summa" readonly="readonly">

 

Link to comment
Share on other sites

Ok, nu funkar det!

 

Jag vet att fältet inte är readonly, jag har inte lagt till det än för att jag ska slippa svara på alla frågor varje gång jag testar bara ;)

 

Nu kommer mitt andra problem...

 

utmana.asp

 

[log]<%

summa = Request.Form("summa")

utmanare = Request.Form("utmanare")

utmanaresmail = Request.Form("utmanaresmail")

kompis = Request.Form("kompis")

kompismail = Request.Form("kompismail")

 

HTML = "<!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//EN"">"

HTML = HTML & "<html>"

HTML = HTML & "<head>"

HTML = HTML & "<meta http-equiv=""Content-Type"""

HTML = HTML & "content=""text/html; charset=iso-8859-1"">"

HTML = HTML & "<meta name=""GENERATOR"""

HTML = HTML & " content=""Microsoft Visual Studio 6.0"">"

HTML = HTML & "<title>Utmaning</title>"

HTML = HTML & "</head>"

HTML = HTML & "<body bgcolor=""#A2CBF9"">"

HTML = HTML & "<p align=""center""><font face=""Castellar"" style=""font-size: 60pt"">"

HTML = HTML & "<b>UTMANING!</b><br></p>"

 

HTML = HTML & "<p align=""center""><font face=""Georgia"" style=""font-size: 38pt"">"

HTML = HTML & "<i><u>" & utmanare & " vill utmana Dig i kunskapstest!</i></u><br><br></p>"

 

HTML = HTML & utmanare

HTML = HTML & " fick " & summa & "<br>"

 

HTML = HTML & kompis & ", vad får Du?"

 

HTML = HTML & "<p align=""right""><font face=""Times New Roman"" style=""font-size: 16pt"">"

HTML = HTML & "</i><br><br>Gå in på <a href=""http://www.iknowwho.se"">"'>http://www.iknowwho.se"">"'>http://www.iknowwho.se"">"

HTML = HTML & "<font face=""Times New Roman"" style=""font-size: 16pt"">www.iknowwho.se </a>och slå" & utmanare & "<br>"

HTML = HTML & "</body>"

HTML = HTML & "</html>"

 

Set objMail = Server.CreateObject( "CDONTS.NewMail" )

objMail.To = kompismail

objMail.Bcc = "hall_ola@hotmail.com"

objMail.From = utmanaresmail

objMail.Subject = kompis &"! Du har blivit utmanad!"

objMail.BodyFormat=0

objMail.Body = HTML

objMail.Host = "mailout.b-one.net"

objMail.Send

Set objMail = Nothing

response.redirect "diplomasent.htm"

 

%>[/log]

 

Jag får ett felmeddelande i LINE 36

 

objMail.To = kompismail

 

...tyder kanske på att värdet inte följer med från HTML-sidan??

 

Nästa bekymmer vet alls hur jag ska lösa...

 

Jag vill att denna länken i ASP-filen:

 

 

[log]HTML = HTML & "<p align=""right""><font face=""Times New Roman"" style=""font-size: 16pt"">"

HTML = HTML & "</i><br><br>Gå in på <a href=""http://www.iknowwho.se"">"

HTML = HTML & "<font face=""Times New Roman"" style=""font-size: 16pt"">www.iknowwho.se </a>och slå" & utmanare & "<br>"

[/log]

 

...ska innehålla se ut såhär:

 

[log]HTML = HTML & "<p align=""center""><font face=""Times New Roman"" style=""font-size: 16pt"">"

HTML = HTML & "</i><br><br><a href=""http://www.iknowwho.se"">"

HTML = HTML & "<font face=""Times New Roman"" style=""font-size: 16pt"">Anta utmaningen!</a>"<br>"

[/log]

 

Det är den blå delen jag inte vet hur den ska vara.

Det jag vill att länken ska göra är att skicka med värdena "summa", "utmanare", "utmanaresmail", "kompis" och "kompismail" till www.iknowwho.se.

Denna sidan ska helst öppnas som vanligt, men med aktuellt test i "startframe".

 

När den utmanade sedan har gjort testet och klickar på beräkna "ball-faktor" ska ett mail skickas till den ursprunglige utmanaren...

 

Mycket att bita i???

 

Uppskattar Din hjälp!

 

...Du ska få poäng igen förresten!

 

/Ganska glad igen...

 

Link to comment
Share on other sites

Micke_skane
Ok, nu funkar det!
Det var ju bra :)

Tackar för poängen! Uppskattas :)

Då tar vi en sak i taget.

Hur låter felmeddelandet?

 

Link to comment
Share on other sites

Felmeddelandet ser ut såhär:

 

Technical Information (for support personnel)

 

Error Type:

Sun ONE ASP VBScript runtime (0x8000FFFF)

/tests/utmana.asp, line 36

 

 

Browser Type:

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322)

 

Page:

GET /tests/utmana.asp

 

Time:

Thursday, May 11, 2006, 9:21:50 AM

 

 

More information:

Sun ONE Active Server Pages Support

 

/väntar med spänning

 

Link to comment
Share on other sites

Micke_skane

Som jag kan se så är där inget i koden som skulle kunna ställa till det på den positionen.

Hur ser värdet ut som läggs i variabeln kompismail?

Prova att skriv in en adress direkt i objMail.To "epost-adress".

 

Ändra sedan till:

[MÄRK]<%[/MÄRK]
[color="#0000ff"]Option Explicit[/color]

[color="#0000ff"]Dim[/color] summa, utmanare, utmanaresmail, kompis, kompismail, HTML, objMail

summa = [b]Request[/b].Form([GRÅ]"summa"[/GRÅ])
...osv...

[MÄRK]%>[/MÄRK]

Googlad fram en länk som längre ner på sidan beskriver en variant på mail med SUN.

http://developers.sun.com/asp/howto/chilimail.html

 

[inlägget ändrat 2006-05-11 10:02:41 av Micke_skane]

Link to comment
Share on other sites

Jag fattar ingenting nu...

 

Denna koden använder jag sedan tidigare i en annan funktion på hemsidan...

 

[log]<%

epost = Request.Form("epost")

category = Request.Form("category")

why = Request.Form("why")

name = Request.Form("name")

nominator = Request.Form("nominator")

nominatoremail = Request.Form("nominatoremail")

 

HTML = "<!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//EN"">"

HTML = HTML & "<html>"

HTML = HTML & "<head>"

HTML = HTML & "<meta http-equiv=""Content-Type"""

HTML = HTML & "content=""text/html; charset=iso-8859-1"">"

HTML = HTML & "<meta name=""GENERATOR"""

HTML = HTML & " content=""Microsoft Visual Studio 6.0"">"

HTML = HTML & "<title>Nomination</title>"

HTML = HTML & "</head>"

HTML = HTML & "<body bgcolor=""#A2CBF9"">"

HTML = HTML & "<p align=""center""><font face=""Castellar"" style=""font-size: 60pt"">"

HTML = HTML & "<b>DIPLOM</b><br></p>"

 

HTML = HTML & "<p align=""center""><font face=""Baskerville Old Face"" style=""font-size: 18pt"">"

HTML = HTML & "i kategorin<br></p><br>"

 

HTML = HTML & "<p align=""center""><font face=""Footlight MT Light"" style=""font-size: 40pt"">"

HTML = HTML & "<b>MÅNADENS " & category & "</b><br><br></p>"

 

HTML = HTML & "<p align=""center""><font face=""Baskerville Old Face"" style=""font-size: 18pt"">"

HTML = HTML & "TILL<br></p><br>"

 

HTML = HTML & "<p align=""center""><font face=""Georgia"" style=""font-size: 38pt"">"

HTML = HTML & "<i><u>" & name & "</i></u><br><br></p>"

 

HTML = HTML & "<div align=""center"">"

HTML = HTML & "<table border=""0"" cellspacing=""1"" style=""border-collapse: collapse"" width=""40%"" id=""Motivation""><tr><td>"

 

HTML = HTML & "<font face=""Baskerville Old Face"" style=""font-size: 14pt"">"

HTML = HTML & "<i>" & why & "</i></td></tr></table></div></p>"

 

HTML = HTML & "<p align=""center""><font face=""Kunstler Script"" style=""font-size: 38pt"">"

HTML = HTML & "<i><u>" & nominator & "</u></i>"

HTML = HTML & "<p align=""center""><font face=""Times New Roman"" style=""font-size: 12pt"">"

HTML = HTML & nominator

 

HTML = HTML & "<p align=""center""><font face=""Kristen ITC"" style=""font-size: 12"">"

HTML = HTML & "<br>Certficate from the I Know Who foundation"

 

HTML = HTML & "<p align=""right""><font face=""Times New Roman"" style=""font-size: 16pt"">"

HTML = HTML & "</i><br><br>Gå till <a href=""http://www.iknowwho.se"">"'>http://www.iknowwho.se"">"

HTML = HTML & "<font face=""Times New Roman"" style=""font-size: 16pt"">www.iknowwho.se </a>och ge ett diplom tillbaka!<br>"

HTML = HTML & "</body>"

HTML = HTML & "</html>"

 

Set objMail = Server.CreateObject( "CDONTS.NewMail" )

objMail.To = epost

objMail.Bcc = "nominate@iknowwho.se"

objMail.From = nominatoremail

objMail.Subject = name &", här kommer Ditt diplom."

objMail.BodyFormat=0

objMail.Body = HTML

objMail.Host = "mailout.b-one.net"

objMail.Send

Set objMail = Nothing

response.redirect "diplomasent.htm"

 

%>[/log]

 

Men denna funkar inte alls!

 

[log]

<%

Option Explicit

 

Dim summa, utmanare, utmanaresmail, kompis, kompismail, HTML, objMail

 

summa = Request.Form("summa")

utmanare = Request.Form("utmanare")

utmanaresmail = Request.Form("utmanaresmail")

kompis = Request.Form("kompis")

kompismail = Request.Form("kompismail")

 

HTML = "<!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//EN"">"

HTML = HTML & "<html>"

HTML = HTML & "<head>"

HTML = HTML & "<meta http-equiv=""Content-Type"""

HTML = HTML & "content=""text/html; charset=iso-8859-1"">"

HTML = HTML & "<meta name=""GENERATOR"""

HTML = HTML & " content=""Microsoft Visual Studio 6.0"">"

HTML = HTML & "<title>Utmaning</title>"

HTML = HTML & "</head>"

HTML = HTML & "<body bgcolor=""#A2CBF9"">"

HTML = HTML & "<p align=""center""><font face=""Castellar"" style=""font-size: 60pt"">"

HTML = HTML & "<b>UTMANING!</b><br></p>"

 

HTML = HTML & "<p align=""center""><font face=""Georgia"" style=""font-size: 38pt"">"

HTML = HTML & "<i><u>" & utmanare & " vill utmana Dig i kunskapstest!</i></u><br><br></p>"

 

HTML = HTML & utmanare

HTML = HTML & " fick " & summa & "<br>"

 

HTML = HTML & kompis & ", vad får Du?"

 

HTML = HTML & "<p align=""right""><font face=""Times New Roman"" style=""font-size: 16pt"">"

HTML = HTML & "</i><br><br>Gå in på <a href=""http://www.iknowwho.se"">"

HTML = HTML & "<font face=""Times New Roman"" style=""font-size: 16pt"">www.iknowwho.se </a>och slå" & utmanare & "<br>"

HTML = HTML & "</body>"

HTML = HTML & "</html>"

 

Set objMail = Server.CreateObject( "CDONTS.NewMail" )

objMail.To = "har lagt min e-post här för att testa!"

objMail.Bcc = "har lagt min e-post här för att testa!"

objMail.From = "har lagt min e-post här för att testa!"

objMail.Subject = kompis &"! Du har blivit utmanad!"

objMail.BodyFormat=0

objMail.Body = HTML

objMail.Host = "mailout.b-one.net"

objMail.Send

Set objMail = Nothing

response.redirect "diplomasent.htm"

 

%>[/log]

 

Det är väl ingen egentlig skillnad på dem?!?!?

 

 

Jag får e-posten...men inga av värdena finns med.

Det är något som inte stämmer alls...

Kanske är felet i HTML-koden??

 

Det följer ju inte med några värden alls från HTML-sidan!

 

Den koden ser ut såhär:

[log]

 

<head>

<meta name="description" content="Ball-faktor">

<title>Är Du ballast på festen?</title>

<style fprolloverstyle>A:hover {color: #FF6600}

</style>

<script language="JavaScript">

<!--

function FP_swapImg() {//v1.0

var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;

n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;

elm.$src=elm.src; elm.src=args[n+1]; } }

}

 

function FP_preloadImgs() {//v1.0

var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();

for(var i=0; i<a.length; i++) { d.FP_imgs=new Image; d.FP_imgs.src=a; }

}

 

function FP_getObjectByID(id,o) {//v1.0

var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);

else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;

if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if©

for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }

f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;

for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }

return null;

}

// -->

</script>

</head>

 

 

<script language="JavaScript">

<!--

 

function SymError()

{

return true;

}

 

window.onerror = SymError;

 

var SymRealWinOpen = window.open;

 

function SymWinOpen(url, name, attributes)

{

return (new Object());

}

 

window.open = SymWinOpen;

 

//-->

</script>

 

<script type="text/javascript">

var radio1_value="";

var radio2_value="";

var radio3_value="";

var radio4_value="";

var radio5_value="";

var radio6_value="";

var radio7_value="";

var radio8_value="";

var radio9_value="";

var radio10_value="";

 

function check() {

if(radio1_value=="" || radio2_value=="" || radio3_value=="" || radio4_value=="" || radio5_value=="" || radio6_value=="" || radio7_value=="" || radio8_value==""

|| radio9_value=="" || radio10_value=="") {

alert("Du måste besvara alla frågor");

return false;

} else {

return summera();

}

}

function summera() {

var summa = ((parseInt(radio1_value) + parseInt(radio2_value) + parseInt(radio3_value) + parseInt(radio4_value) + parseInt(radio5_value) + parseInt(radio6_value)

+ parseInt(radio7_value) + parseInt(radio8_value) + parseInt(radio9_value) + parseInt(radio10_value))/6);

document.getElementById('summa').value=(Math.round(summa));

return false;

}

function checkSumma(form) {

if (form.summa.value=="") {

alert("Beräkna en Ball-faktor först");

return false

}

if (form.utmanare.value=="") {

alert("Fyll i Ditt namn");

form.utmanare.focus();

return false;

}

if (form.utmanaresmail.value=="") {

alert("Fyll i Din e-post");

form.utmanaresmail.focus();

return false;

}

if (form.kompis.value=="") {

alert("Fyll i namnet på den Du vill utmana");

form.kompis.focus();

return false;

}

if (form.kompismail.value=="") {

alert("Fyll i e-post till den Du vill utmana");

form.kompismail.focus();

return false;

}

}

</script>

 

<body bgcolor="#A79FFD" link="#000000" vlink="#000000" alink="#000000" onload="FP_preloadImgs(/*url*/'button3E.jpg', /*url*/'button3F.jpg')">

<form action="utmana.asp" onsubmit="javascript:return checkSumma(this)";>

<table border="0" cellspacing="1" style="border-collapse: collapse" width="400" height="100" id="table1">

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">Är Du ballast på festen?</font></td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">Hur ball är Du på en

skala från 1 till 10? Testa Din &quot;ball-faktor&quot;!</font></td>

</tr>

<tr>

<td>&nbsp;</td>

<td width="130" colspan="2">&nbsp;</td>

<td width="105" colspan="2">&nbsp;</td>

<td width="8">&nbsp;</td>

<td width="84" colspan="2">&nbsp;</td>

<td width="81" colspan="2">&nbsp;</td>

<td width="64">&nbsp;</td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">1. Hur laddar Du upp inför festen?</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="1" onclick="radio1_value='5'" value="5" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Går på förfest</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="1" onclick="radio1_value='6'" value="6" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Fixar en förfest</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="1" onclick="radio1_value='2'" value="2" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Kollar min e-mail</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="1" onclick="radio1_value='1'" value="1" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Kollar på TV</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="1" onclick="radio1_value='4'" value="4" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Klämmer ett par bira/cider</font></td>

</tr>

<tr>

<td align="center">

<p align="center"><font face="Kristen ITC">

<input type="Radio" name="1" onclick="radio1_value='3'" value="3" style="float: left"></font></td>

<td colspan="10" align="left"><font face="Kristen ITC" size="2">Provar alla kläder i garderoben</font></td>

</tr>

<tr>

<td colspan="11">&nbsp;</td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">2. Vad har Du på Dig till festen?</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="2" onclick="radio2_value='4'" value="4" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Det som är inne just nu</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="2" onclick="radio2_value='3'" value="3" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Inga underkläder</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="2" onclick="radio2_value='2'" value="2" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Kostym/klänning</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="2" onclick="radio2_value='5'" value="5" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Något som absolut ingen annan

skulle ha på sig</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="2" onclick="radio2_value='6'" value="6" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Spelar ingen roll, ball ändå</font></td>

</tr>

<tr>

<td align="center">

<p align="center"><font face="Kristen ITC">

<input type="Radio" name="2" onclick="radio2_value='1'" value="1" style="float: left"></font></td>

<td colspan="10" align="left"><font face="Kristen ITC" size="2">Det som ligger framme</font></td>

</tr>

<tr>

<td colspan="11">&nbsp;</td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">3. Hur tar Du Dig till festen?</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="3" onclick="radio3_value='3'" value="3" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Cyklar</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="3" onclick="radio3_value='1'" value="1" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Tar min värstingbil</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="3" onclick="radio3_value='4'" value="4" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Åker buss</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="3" onclick="radio3_value='5'" value="5" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Går</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="3" onclick="radio3_value='6'" value="6" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Åker taxi</font></td>

</tr>

<tr>

<td align="center">

<p align="center"><font face="Kristen ITC">

<input type="Radio" name="3" onclick="radio3_value='2'" value="2" style="float: left"></font></td>

<td colspan="10" align="left"><font face="Kristen ITC" size="2">Mamma skjutsar</font></td>

</tr>

<tr>

<td colspan="11">&nbsp;</td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">4. Hur gör Du entré?</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="4" onclick="radio4_value='4'" value="4" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Presenterar mig för alla</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="4" onclick="radio4_value='6'" value="6" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Ropar; &quot;Nu är jag här!&quot;</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="4" onclick="radio4_value='2'" value="2" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Ropar; &quot;Var är spriten!?&quot;</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="4" onclick="radio4_value='3'" value="3" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Smyger in och skrämmer alla</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="4" onclick="radio4_value='5'" value="5" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Klättrar in genom ett fönster</font></td>

</tr>

<tr>

<td align="center">

<p align="center"><font face="Kristen ITC">

<input type="Radio" name="4" onclick="radio4_value='1'" value="1" style="float: left"></font></td>

<td colspan="10" align="left"><font face="Kristen ITC" size="2">Är redan där när alla kommer</font></td>

</tr>

<tr>

<td colspan="11">&nbsp;</td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">5. Vad dricker Du på festen?</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="5" onclick="radio5_value='3'" value="3" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Grogg</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="5" onclick="radio5_value='5'" value="5" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Öl/cider</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="5" onclick="radio5_value='4'" value="4" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Vin</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="5" onclick="radio5_value='6'" value="6" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Vad som bjuds</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="5" onclick="radio5_value='1'" value="1" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Läsk eller mineralvatten</font></td>

</tr>

<tr>

<td align="center">

<p align="center"><font face="Kristen ITC">

<input type="Radio" name="5" onclick="radio5_value='2'" value="2" style="float: left"></font></td>

<td colspan="10" align="left"><font face="Kristen ITC" size="2">Så lite som möjligt</font></td>

</tr>

<tr>

<td colspan="11">&nbsp;</td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">6. Vilka snackar Du med?</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="6" onclick="radio6_value='4'" value="4" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Värden/värdinnan</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="6" onclick="radio6_value='5'" value="5" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Bara av det motsatta könet</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="6" onclick="radio6_value='6'" value="6" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Alla som verkar vara balla</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="6" onclick="radio6_value='1'" value="1" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">De som verkar vara mesar</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="6" onclick="radio6_value='3'" value="3" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">De som dricker mest</font></td>

</tr>

<tr>

<td align="center">

<p align="center"><font face="Kristen ITC">

<input type="Radio" name="6" onclick="radio6_value='2'" value="2" style="float: left"></font></td>

<td colspan="10" align="left"><font face="Kristen ITC" size="2">Ingen, skickar SMS istället</font></td>

</tr>

<tr>

<td colspan="11">&nbsp;</td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">7. Vilket är samtalsämnet?</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="7" onclick="radio7_value='6'" value="6" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Brudar/killar</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="7" onclick="radio7_value='2'" value="2" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Musik, film eller böcker</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="7" onclick="radio7_value='5'" value="5" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Samhällsfrågor</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="7" onclick="radio7_value='4'" value="4" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Dina nya kläder</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="7" onclick="radio7_value='1'" value="1" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Skitsnack om folk på festen</font></td>

</tr>

<tr>

<td align="center">

<p align="center"><font face="Kristen ITC">

<input type="Radio" name="7" onclick="radio7_value='6'" value="3" style="float: left"></font></td>

<td colspan="10" align="left"><font face="Kristen ITC" size="2">Din utbildning</font></td>

</tr>

<tr>

<td colspan="11">&nbsp;</td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">8. Vilket är Ditt bästa partytrick?</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="8" onclick="radio8_value='6'" value="6" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Practical jokes</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="8" onclick="radio8_value='1'" value="1" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Moona</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="8" onclick="radio8_value='4'" value="4" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Halsa fem öl utan att andas</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="8" onclick="radio8_value='3'" value="3" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Strippa</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="8" onclick="radio8_value='5'" value="5" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Berätta roliga historier</font></td>

</tr>

<tr>

<td align="center">

<p align="center"><font face="Kristen ITC">

<input type="Radio" name="8" onclick="radio8_value='2'" value="2" style="float: left"></font></td>

<td colspan="10" align="left"><font face="Kristen ITC" size="2">Visa Dina Kung Fu moves</font></td>

</tr>

<tr>

<td colspan="11">&nbsp;</td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">9. Vilken är Din viktigaste uppgift på festen?</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="9" onclick="radio9_value='2'" value="2" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Sköta stereon</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="9" onclick="radio9_value='6'" value="6" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Blanda alla de nyaste drinkarna</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="9" onclick="radio9_value='3'" value="3" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Bjuda dit mer folk</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="9" onclick="radio9_value='5'" value="5" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Knyta ihop alla skosnören</font></td>

</tr>

<tr>

<td width="26" align="center"><font face="Kristen ITC">

<input type="Radio" name="9" onclick="radio9_value='4'" value="4" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Gömma alla jackor</font></td>

</tr>

<tr>

<td align="center">

<p align="center"><font face="Kristen ITC">

<input type="Radio" name="9" onclick="radio9_value='1'" value="1" style="float: left"></font></td>

<td colspan="10" align="left"><font face="Kristen ITC" size="2">Äta upp all mat i kylen</font></td>

</tr>

<tr>

<td colspan="11">&nbsp;</td>

</tr>

<tr>

<td colspan="11"><font face="Kristen ITC" size="2">10. Hur avslutar Du festkvällen?</font></td>

</tr>

<tr>

<td width="26"><font face="Kristen ITC">

<input type="Radio" name="10" onclick="radio10_value='4'" value="4" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Däckar på dass</font></td>

</tr>

<tr>

<td width="26"><font face="Kristen ITC">

<input type="Radio" name="10" onclick="radio10_value='6'" value="6" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Drar ut på stan</font></td>

</tr>

<tr>

<td width="26"><font face="Kristen ITC">

<input type="Radio" name="10" onclick="radio10_value='5'" value="5" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Går med någon hem</font></td>

</tr>

<tr>

<td width="26"><font face="Kristen ITC">

<input type="Radio" name="10" onclick="radio10_value='1'" value="1" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Mamma hämtar mig efter

22-nyheterna</font></td>

</tr>

<tr>

<td width="26"><font face="Kristen ITC">

<input type="Radio" name="10" onclick="radio10_value='2'" value="2" style="float: left"></font></td>

<td width="507" align="left" colspan="10">

<font face="Kristen ITC" size="2">Hjälper till att städa</font></td>

</tr>

<tr>

<td>

<p align="center"><font face="Kristen ITC">

<input type="Radio" name="10" onclick="radio10_value='3'" value="3" style="float: left"></font></td>

<td colspan="10" align="left"><font face="Kristen ITC" size="2">Dricker upp det sista i alla kvarlämnade

glas</font></td>

</tr>

<tr>

<td colspan="11">&nbsp;</td>

</tr>

<tr>

<td width="535" colspan="11">&nbsp;</td>

</tr>

<tr>

<td width="537" align="center" colspan="11"><font face="Kristen ITC">

<input type="button" value="Beräkna Ball-faktor" onclick="javascript:return check()"></font></td>

</tr>

<tr>

<td width="537" colspan="11" align="center">&nbsp;</td>

</tr>

<tr>

<td width="537" colspan="11" align="center"><font face="Kristen ITC">

<font size="2">På en ball-skala från 1 till 10 är Du en: </font>

<input id="summa" name="summa" size="2"><font size="2">:a</font></font></td>

</tr>

<tr>

<td width="537" colspan="11" align="center">&nbsp;</td>

</tr>

<tr>

<td width="537" colspan="11" align="center">

<div style="position: absolute; width: 89px; height: 26px; z-index: 4; left: 131px; top: 2254px" id="GoBack">

<font face="Kristen ITC" size="2">

<a href="../tests.htm">

<img border="0" id="img2" src="button3D.jpg" height="28" width="139" alt="Tillbaka!" onmouseover="FP_swapImg(1,0,/*id*/'img2',/*url*/'button3E.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img2',/*url*/'button3D.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img2',/*url*/'button3F.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img2',/*url*/'button3E.jpg')" fp-style="fp-btn: Metal Rectangle 5; fp-font: Kristen ITC; fp-font-style: Bold; fp-font-size: 14" fp-title="Tillbaka!"></a></font></div>

<p><font face="Kristen ITC" size="2">Utmana en kompis!</font></td>

</tr>

<tr>

<td width="537" colspan="11" align="center">

&nbsp;</td>

</tr>

<tr>

<td width="25%" colspan="4" align="left">

<font face="Kristen ITC" size="2">Ditt namn:</font></td>

<td colspan="7" align="left" width="50%">

<input type="text" name="utmanare" size="28"></td>

</tr>

<tr>

<td width="25%" colspan="4" align="left">

<font face="Kristen ITC" size="2">Din e-post:</font></td>

<td colspan="7" align="left" width="50%">

<input type="text" name="utmanaresmail" size="28"></td>

</tr>

<tr>

<td width="50%" colspan="11" align="left">

&nbsp;</td>

</tr>

<tr>

<td width="50%" colspan="4" align="left">

<font face="Kristen ITC" size="2">Din kompis namn:</font></td>

<td colspan="7" align="left" width="50%">

<input type="text" name="kompis" size="28"></td>

</tr>

<tr>

<td width="50%" colspan="4" align="left">

<font face="Kristen ITC" size="2">Din kompis e-post:</font></td>

<td colspan="7" align="left" width="50%">

<input type="text" name="kompismail" size="28"></td>

</tr>

<tr>

<td width="108" colspan="2" align="left">

&nbsp;</td>

<td width="108" colspan="2" align="left">

&nbsp;</td>

<td width="59" colspan="3" align="left">

&nbsp;</td>

<td width="107" colspan="2" align="left">

&nbsp;</td>

<td width="107" colspan="2" align="left">

&nbsp;</td>

</tr>

<tr>

<td width="538" colspan="11" align="center">

<input type="submit" value="Skicka utmaning!" name="Skicka"></td>

</tr>

<tr>

<td width="108" colspan="2" align="left">

&nbsp;</td>

<td width="108" colspan="2" align="left">

&nbsp;</td>

<td width="59" colspan="3" align="left">

&nbsp;</td>

<td width="107" colspan="2" align="left">

&nbsp;</td>

<td width="107" colspan="2" align="left">

&nbsp;</td>

</tr>

<tr>

<td width="108" colspan="2" align="left">

&nbsp;</td>

<td width="108" colspan="2" align="left">

&nbsp;</td>

<td width="59" colspan="3" align="left">

&nbsp;</td>

<td width="107" colspan="2" align="left">

&nbsp;</td>

<td width="107" colspan="2" align="left">

&nbsp;</td>

</tr>

<tr>

<td width="108" colspan="2" align="left">

&nbsp;</td>

<td width="108" colspan="2" align="left">

&nbsp;</td>

<td width="59" colspan="3" align="left">

&nbsp;</td>

<td width="107" colspan="2" align="left">

&nbsp;</td>

<td width="107" colspan="2" align="left">

&nbsp;</td>

</tr>

<tr>

<td width="108" colspan="2" align="left">

&nbsp;</td>

<td width="108" colspan="2" align="left">

&nbsp;</td>

<td width="59" colspan="3" align="left">

&nbsp;</td>

<td width="107" colspan="2" align="left">

&nbsp;</td>

<td width="107" colspan="2" align="left">

&nbsp;</td>

</tr>

</table>

</form>

</body>[/log]

 

/:(

 

Link to comment
Share on other sites

Micke_skane

Har inte tid just nu att se grundligare på din kod men prova att skriv ut dina variabler och se vad dem innehåller.

Det är en grundregel i felsökning :)

[log]

[MÄRK]<%[/MÄRK]
[color="#0000ff"]Option Explicit[/color]

[color="#0000ff"]Dim[/color] summa, utmanare, utmanaresmail, kompis, kompismail, HTML, objMail

summa = [b]Request[/b].Form([GRÅ]"summa"[/GRÅ])
utmanare = [b]Request[/b].Form([GRÅ]"utmanare"[/GRÅ])
utmanaresmail = [b]Request[/b].Form([GRÅ]"utmanaresmail"[/GRÅ])
kompis = [b]Request[/b].Form([GRÅ]"kompis"[/GRÅ])
kompismail = [b]Request[/b].Form([GRÅ]"kompismail"[/GRÅ])

[b]Response[/b].Write summa&[GRÅ]"<br />"[/GRÅ]
[b]Response[/b].Write utmanare&[GRÅ]"<br />"[/GRÅ]
[b]Response[/b].Write utmanaresmail&[GRÅ]"<br />"[/GRÅ] 
[b]Response[/b].Write kompis&[GRÅ]"<br />"[/GRÅ]
[b]Response[/b].Write kompismail
[b]Response[/b].[color="#0000ff"]End[/color]

[color="#006400"]'Övrig kod[/color]
[MÄRK]%>[/MÄRK]

[/log]

 

 

[inlägget ändrat 2006-05-12 08:28:39 av Micke_skane]

Link to comment
Share on other sites

Jag har testat det!

 

Sidan är helt tom!

 

Variablerna blir " " ingenting!?

 

Finns inga värden!

 

/Fattar nada...igen...

 

Link to comment
Share on other sites

Nu har jag löst det hela...

 

Det var ett pinsamt fel...

 

Jag glömde FORM method="POST"

 

:s

 

[log]<%

Option Explicit

 

Dim summa, utmanare, utmanaresmail, kompis, kompismail, HTML, objMail

 

summa = Request.Form("summa")

utmanare = Request.Form("utmanare")

utmanaresmail = Request.Form("utmanaresmail")

kompis = Request.Form("kompis")

kompismail = Request.Form("kompismail")

 

HTML = "<!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//EN"">"

HTML = HTML & "<html>"

HTML = HTML & "<head>"

HTML = HTML & "<meta http-equiv=""Content-Type"""

HTML = HTML & "content=""text/html; charset=iso-8859-1"">"

HTML = HTML & "<meta name=""GENERATOR"""

HTML = HTML & " content=""Microsoft Visual Studio 6.0"">"

HTML = HTML & "<title>Utmaning</title>"

HTML = HTML & "</head>"

HTML = HTML & "<body bgcolor=""#99F28C"">"

HTML = HTML & "<p align=""center""><font face=""Castellar"" style=""font-size: 60pt"">"

HTML = HTML & "<b>UTMANING!</b><br></p>"

 

HTML = HTML & "<p align=""center""><font face=""Georgia"" style=""font-size: 24pt"">"

HTML = HTML & utmanare & " vill utmana Dig i testet<br>"

HTML = HTML & "<i>Ballast på festen</i><br><br>"

 

 

HTML = HTML & utmanare

HTML = HTML & " fick " & summa & "!<br>"

 

HTML = HTML & kompis & ", vad får Du?</p>"

 

HTML = HTML & "<p align=""right""><font face=""Times New Roman"" style=""font-size: 16pt"">"

HTML = HTML & "</i><br><br>Gå in på <a href=""http://www.iknowwho.se"">"

HTML = HTML & "<font face=""Times New Roman"" style=""font-size: 16pt"">www.iknowwho.se</a> och slå " & utmanare & "<br>"

HTML = HTML & "</body>"

HTML = HTML & "</html>"

 

Set objMail = Server.CreateObject( "CDONTS.NewMail" )

objMail.To = kompismail

objMail.Bcc = "nominate@iknowwho.se"

objMail.From = utmanare

objMail.Subject = kompis &"! Du har blivit utmanad!"

objMail.BodyFormat=0

objMail.Body = HTML

objMail.Host = "mailout.b-one.net"

objMail.Send

Set objMail = Nothing

response.redirect "../tests.htm"

 

%>[/log]

 

Länken i denna ASP-filen funkar inte!

Jag vill ju att man ska kunna klicka direkt i mailet man får...

 

/funkade ju innan!

 

Link to comment
Share on other sites

Micke_skane

"</i><br><br>Gå in på www.iknowwho.se och slå "& utmanare 

 

Så blir det rätt iaf i Outlooken.

Du får justera med t ex css hur du vill att länken ska vara formaterad.

 

Link to comment
Share on other sites

Nu är det något nytt fel...

 

Jag får felmeddelande i line 49;

Technical Information (for support personnel)

 

Error Type:

CDONTS.NewMail.1 (0x80020009)

The ASP service reported that there are no unused client licenses available.

/tests/utmana.asp, line 49

 

 

Browser Type:

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

 

Page:

POST 170 bytes to /tests/utmana.asp

 

POST Data:

1=1&2=5&3=3&4=2&5=5&6=6&7=1&8=3&9=3&10=5&summa=6&utmanare=Ola&utmanaresmail=hall_ola@hotmail.com&kompis=Ola+Hall&kompismail=hall_ola@hotmail.com&Skicka=Skicka+utmaning%21

 

Såhär ser ASP-filen ut...

 

[log]

<%

Option Explicit

 

Dim summa, utmanare, utmanaresmail, kompis, kompismail, HTML, objMail

 

summa = Request.Form("summa")

utmanare = Request.Form("utmanare")

utmanaresmail = Request.Form("utmanaresmail")

kompis = Request.Form("kompis")

kompismail = Request.Form("kompismail")

 

HTML = "<!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//EN"">"

HTML = HTML & "<html>"

HTML = HTML & "<head>"

HTML = HTML & "<meta http-equiv=""Content-Type"""

HTML = HTML & "content=""text/html; charset=iso-8859-1"">"

HTML = HTML & "<meta name=""GENERATOR"""

HTML = HTML & " content=""Microsoft Visual Studio 6.0"">"

HTML = HTML & "<title>Utmaning</title>"

HTML = HTML & "</head>"

HTML = HTML & "<body bgcolor=""#99F28C"">"

HTML = HTML & "<p align=""center""><font face=""Castellar"" style=""font-size: 60pt"">"

HTML = HTML & "<b>UTMANING!</b><br></p>"

 

HTML = HTML & "<p align=""center""><font face=""Georgia"" style=""font-size: 24pt"">"

HTML = HTML & utmanare & " vill utmana Dig i testet<br>"

HTML = HTML & "<i>Ballast på festen</i><br><br>"

 

 

HTML = HTML & utmanare

HTML = HTML & " fick " & summa & "!<br>"

 

HTML = HTML & kompis & ", vad får Du?</p>"

 

HTML = HTML & "<p align=""right""><font face=""Times New Roman"" style=""font-size: 16pt"">"

HTML = HTML & "</i><br><br>Gå in på <a href=""http://www.iknowwho.se"">"

HTML = HTML & "<font face=""Times New Roman"" style=""font-size: 16pt"">www.iknowwho.se</a> och slå " & utmanare & "<br>"

HTML = HTML & "</body>"

HTML = HTML & "</html>"

 

Set objMail = Server.CreateObject( "CDONTS.NewMail" )

objMail.To = kompismail

objMail.Bcc = "nominate@iknowwho.se"

objMail.From = utmanare

objMail.Subject = kompis &"! Du har blivit utmanad!"

objMail.BodyFormat=0

objMail.Body = HTML

objMail.Host = "mailout.b-one.net"

objMail.Send

Set objMail = Nothing

response.redirect "../tests.htm"

 

%>

[/log]

 

Jag fattar inget!

 

/GRRR!

 

Link to comment
Share on other sites

Nja...

 

Jag har gjort en annan ASP-fil som fungerar utmärkt!

 

Den ser i princip identisk ut...

 

/Fattar inget!

 

Link to comment
Share on other sites

Micke_skane

Det är bara att börja felsöka.

Prova först med att skicka ett grundmail utan HTML-formatering.

Går det iväg som det ska så börja plocka in en bit i taget för att se vad det är som strular till det.

 

Det är ett sätt att felsöka kod som inte riktigt fungerar som det var tänkt.

 

Link to comment
Share on other sites

Japp, sorry, jag skulle kanske meddelat...

 

Jag har felsökt och hittat felet!

 

:)

 

Men en fråga...

Går det göra så att mottagaren av mailet kan klicka på en länk

som tar med värden till sidan man kommer in på?

 

...som jag beskrev i ett tidigare inlägg...

 

/Jag

 

Link to comment
Share on other sites

nu har jag inte läst så noga vilka värden du vill skicka med men querystrings skulle väl ordna detta...

 

Link to comment
Share on other sites

Ok.

Såhär ser min fråga ut i detalj...

 

Jag har en HTML-fil som innehåller ett frågeformulär.

Olika variabler skickas till följande ASP-fil.

 

utmana.asp

 

[log]

<%

summa = Request.Form("summa")

utmanare = Request.Form("utmanare")

utmanaresmail = Request.Form("utmanaresmail")

kompis = Request.Form("kompis")

kompismail = Request.Form("kompismail")

 

HTML = "<!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//EN"">"

HTML = HTML & "<html>"

HTML = HTML & "<head>"

HTML = HTML & "<meta http-equiv=""Content-Type"""

HTML = HTML & "content=""text/html; charset=iso-8859-1"">"

HTML = HTML & "<meta name=""GENERATOR"""

HTML = HTML & " content=""Microsoft Visual Studio 6.0"">"

HTML = HTML & "<title>Utmaning</title>"

HTML = HTML & "</head>"

HTML = HTML & "<body bgcolor=""#A2CBF9"">"

HTML = HTML & "<p align=""center""><font face=""Castellar"" style=""font-size: 60pt"">"

HTML = HTML & "<b>UTMANING!</b><br></p>"

 

HTML = HTML & "<p align=""center""><font face=""Georgia"" style=""font-size: 38pt"">"

HTML = HTML & "<i><u>" & utmanare & " vill utmana Dig i kunskapstest!</i></u><br><br></p>"

 

HTML = HTML & utmanare

HTML = HTML & " fick " & summa & "<br>"

 

HTML = HTML & kompis & ", vad får Du?"

HTML = HTML & "<p align=""right""><font face=""Times New Roman"" style=""font-size: 16pt"">"

HTML = HTML & "</i><br><br>Gå in på <a href=""http://www.iknowwho.se"">"

HTML = HTML & "<font face=""Times New Roman"" style=""font-size: 16pt"">www.iknowwho.se </a>och slå" & utmanare & "<br>"

HTML = HTML & "</body>"

HTML = HTML & "</html>"

 

Set objMail = Server.CreateObject( "CDONTS.NewMail" )

objMail.To = kompismail

objMail.Bcc = "nominate@iknowwho.se"

objMail.From = utmanaresmail

objMail.Subject = kompis &"! Du har blivit utmanad!"

objMail.BodyFormat=0

objMail.Body = HTML

objMail.Host = "mailout.b-one.net"

objMail.Send

Set objMail = Nothing

response.redirect "diplomasent.htm"

 

%>[/log]

 

Delen som är blåmarkerad i koden vill jag ha lite hjälp med.

 

Jag vill att detta ska vara en länk som mottagaren av mailet kan klicka på.

Kanske en textrad som ser ut såhär:

Anta utmaningen!

 

Det som ska hända då är att man kommer till HTML-sidan med testet.

Resultatet man får då kommer i detta fallet automatiskt att skickas till den person som först gjorde testet.

 

Jag inser att detta kan vara ett projekt. Jag vet inte hur man gör detta.

 

HTML-sidan borde ju innehålla någon form av kod som kollar av om man har skickats dit via en länk (kanske genom att en variabel bestämts i mailet??). Andra Variabler som måste följa med är ju "utmanare, utmanaresmail, kompis och kompismail".

 

Är detta möjligt att lösa!?!?

 

/Ivrig

 

Link to comment
Share on other sites

Det skulle vara smidigare om du lade in alla resultatdatan i en databas. På detta sätt slipper du skicka alla data i querystringen och du kan även lättare hålla koll på vem som är utmanare och vem som är kompis.

Givetvis GÅR det lösa med databas, men det är jobbigare då.

 

HTML = HTML & "</i><br><br>Gå in på <a href=""http://www.iknowwho.se/?resultat=123&whosresult=utmanare"">"
'här måste du skicka med en querystring med resultat samt om det är utmanarens resultat eller kompisens resultet.

 

Jag ser att du inte direktlänkar till tävlingssidan vilket innebär att du måste vidarebefodra querystringen till tävlingssidan

 

Sen får man ändra i formuläret, samt i utmana.asp

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...