Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onclick form submit

Status
Not open for further replies.

sliver

Programmer
Nov 16, 2000
23
US
I am trying to figure out the code to have a onclick form submission possible from an url link.

I have tryed

<a href=&quot;link?variable=X&quot; onclick=&quot;document.myform.submit();&quot;> linktext</a>

what I need is a link that will carry all the hidden form fields and this one variable which will be different.

I am pretty much lost here but I am pretty sure javascript can do this
 
I would create the variable as a hidden field, create a function to set that variable and submit.

something like....

MySubmit{
document.myform.varible.value = '123'
document.myform.submit()
}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top