Michael B.
Moderator
Ich hab folgenden Code.
Und nu mein Problem. Er macht den Submit den er beim Click auf den Link machen soll nicht =( Und des wäre wichtig, wegen der Counterroutine des Downloadcounters =(
Is meiner Meinung nach ein JavaScript Problem =(
Jemand ne Idee?
PHP:
<script>
function submit(id)
{
documents.forms[id].submit();
resturn true;
}
</script>
<form name=\"$myrow[id]\" action=\"download.php?aktion=count&id=$myrow[id]\">
<font size=2 face=courier>
<center>
<table width=99% cellpadding=0 border=0 cellspacing=0>
<tr><td bgcolor=#000000>
<table width=100% cellpadding=2 cellspacing=1 border=0>
<tr bgcolor=#ffffff><td width=50%><a href=\"$myrow[file]\" onClick=\"return submit($myrow[id]);\">$myrow[name]</a></td>
<td width=50% align=right><font size=1>Datum: <b>" . strftime( "%d.%m.%Y", filemtime($myrow[file])) . "</font></tr>
<tr bgcolor=#ffffff><td width=50%><font size=1>Downloads: <b>$myrow[counter]</b></font></td>
<td align=center width=50%><font size=1>" . display_size($myrow[file]) . "</font></td></tr>
</table></td></tr>
</table><br><br></font>
</form>
Und nu mein Problem. Er macht den Submit den er beim Click auf den Link machen soll nicht =( Und des wäre wichtig, wegen der Counterroutine des Downloadcounters =(
Is meiner Meinung nach ein JavaScript Problem =(
Jemand ne Idee?