Value from request.getParameter is null when used form.submit()

I have problem about using form.submit()

this is sample code

<%

string test = request.getParameter("txtID");

System.out.println(test);

%>

<html>

<form method=post action="">

<input type=textbox id=txtID value="hello">

<input type=submit value=submitonclick="this.form.submit();" >

</form>

<html>

if I remove onclick function, It word fine

What wrong am I?

regards

[504 byte] By [mistwalkera] at [2007-10-2 20:30:18]
# 1
your making redundancy here and maybe there is a syntax error on the submit:this is the redundancy part:onclick="this.form.submit();"
jgalacambraa at 2007-7-13 23:13:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
onclick="document.all.forms[0].submit();"
OniShiroa at 2007-7-13 23:13:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...