Hallo Leute;
ich habe eine Frage, wie kann man per Script Daten per Mail versenden ?
Das heißt im Script werden Zufallszahlen erzeugt, diese Zahlen möchte ich,
vom User unbemerkt per Emailscript versenden.
Hier der Quellcode:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Unbenanntes Dokument</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p> <script language="javascript">
<!--
var loop;
var randy;
function make_array(size)
{
this.length = size;
for (a=0; a<size; a++) this[a]="";
}
function generatenos()
{
hold = new make_array(document.lottery.max_number.value);
document.lottery.numbers.value = "";
for(loop=0;loop<document.lottery.balls_drawn.value;loop++)
{
randy = Math.round(Math.random()*(document.lottery.max_number.value-1));
randy++; //ie. number between 0+1 (=1) and max_value-1+1 (=max_value)
if(hold[randy]==1)
{
loop--;
continue;
}
if(hold[randy]!=1)
{
hold[randy]=1;
}
}
for(loop=0;loop<=document.lottery.max_number.value;loop++)
{
if(hold[loop]==1) //ie. if 'loop' is flagged
document.lottery.numbers.value = document.lottery.numbers.value + loop + ", "; //display on 'numbers' text field, seperated by commas
}
}
// -->
</script><script language="javascript">
<!--
var loop;
var randy;
function make_array(size)
{
this.length = size;
for (a=0; a<size; a++) this[a]="";
}
function generatenos()
{
hold = new make_array(document.lottery.max_number.value);
document.lottery.numbers.value = "";
for(loop=0;loop<document.lottery.balls_drawn.value;loop++)
{
randy = Math.round(Math.random()*(document.lottery.max_number.value-1));
randy++; //ie. number between 0+1 (=1) and max_value-1+1 (=max_value)
if(hold[randy]==1)
{
loop--;
continue;
}
if(hold[randy]!=1)
{
hold[randy]=1;
}
}
for(loop=0;loop<=document.lottery.max_number.value;loop++)
{
if(hold[loop]==1) //ie. if 'loop' is flagged
document.lottery.numbers.value = document.lottery.numbers.value + loop + ", "; //display on 'numbers' text field, seperated by commas
}
}
// -->
</script></p>
<p> </p>
<p><form name="lottery">
<div align="center"><center><p>Glückszahlen:<br>
<input type="text" size="2" name="balls_drawn" value="4"><br>
<br>
Glückspunkte:<br>
<input type="text" size="2" name="max_number" value="10"><br>
<br>
Die Zahlen<br>
<input type="text" size="40" maxlength="40" name="numbers"><br>
<input type="button" value="Und los" onclick="generatenos();"><br>
<br>
</p>
</center></div>
</form> </p>
</body>
</html>
Wie mache ich das ? Bitte um Antwort da es wirklich, für mich, dringlich ist.
Vielen Dank Voraus
LG Dracolino
ich habe eine Frage, wie kann man per Script Daten per Mail versenden ?
Das heißt im Script werden Zufallszahlen erzeugt, diese Zahlen möchte ich,
vom User unbemerkt per Emailscript versenden.
Hier der Quellcode:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Unbenanntes Dokument</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p> <script language="javascript">
<!--
var loop;
var randy;
function make_array(size)
{
this.length = size;
for (a=0; a<size; a++) this[a]="";
}
function generatenos()
{
hold = new make_array(document.lottery.max_number.value);
document.lottery.numbers.value = "";
for(loop=0;loop<document.lottery.balls_drawn.value;loop++)
{
randy = Math.round(Math.random()*(document.lottery.max_number.value-1));
randy++; //ie. number between 0+1 (=1) and max_value-1+1 (=max_value)
if(hold[randy]==1)
{
loop--;
continue;
}
if(hold[randy]!=1)
{
hold[randy]=1;
}
}
for(loop=0;loop<=document.lottery.max_number.value;loop++)
{
if(hold[loop]==1) //ie. if 'loop' is flagged
document.lottery.numbers.value = document.lottery.numbers.value + loop + ", "; //display on 'numbers' text field, seperated by commas
}
}
// -->
</script><script language="javascript">
<!--
var loop;
var randy;
function make_array(size)
{
this.length = size;
for (a=0; a<size; a++) this[a]="";
}
function generatenos()
{
hold = new make_array(document.lottery.max_number.value);
document.lottery.numbers.value = "";
for(loop=0;loop<document.lottery.balls_drawn.value;loop++)
{
randy = Math.round(Math.random()*(document.lottery.max_number.value-1));
randy++; //ie. number between 0+1 (=1) and max_value-1+1 (=max_value)
if(hold[randy]==1)
{
loop--;
continue;
}
if(hold[randy]!=1)
{
hold[randy]=1;
}
}
for(loop=0;loop<=document.lottery.max_number.value;loop++)
{
if(hold[loop]==1) //ie. if 'loop' is flagged
document.lottery.numbers.value = document.lottery.numbers.value + loop + ", "; //display on 'numbers' text field, seperated by commas
}
}
// -->
</script></p>
<p> </p>
<p><form name="lottery">
<div align="center"><center><p>Glückszahlen:<br>
<input type="text" size="2" name="balls_drawn" value="4"><br>
<br>
Glückspunkte:<br>
<input type="text" size="2" name="max_number" value="10"><br>
<br>
Die Zahlen<br>
<input type="text" size="40" maxlength="40" name="numbers"><br>
<input type="button" value="Und los" onclick="generatenos();"><br>
<br>
</p>
</center></div>
</form> </p>
</body>
</html>
Wie mache ich das ? Bitte um Antwort da es wirklich, für mich, dringlich ist.
Vielen Dank Voraus
LG Dracolino
Kommentar