I've got this onclick call:

```
onClick="mySubmit();

```

which calls this function:

```
function mySubmit(){
    document.getElementById("myForm").submit();
}

```

which then submits this form:

```
<form id="myForm" action="action.php" method="post">

```

**My question is:** how do I send a variable to the form from the onClick to get something like `<form id="myForm" action="action.php?id=**(the variable sent from the onclick goes here)**" method="post">`

Thanks!