wood burning stoves
The moose likes HTML, CSS and JavaScript and the fly likes submitting a form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "submitting a form" Watch "submitting a form" New topic

submitting a form

Leonardo Go

Joined: Jun 13, 2004
Posts: 13
can i submit a form using a text instead of a submit button ?
what i want is when a user clicks on a word "Submit the form" within my page then i can submit form1 to a jsp page.
how can i do this ?

thnx in advance

Problems are made to be solved.
Kj Reddy
Ranch Hand

Joined: Sep 20, 2003
Posts: 1704
Make "Submit the Form" as link and on click event of that link call a JavaScript function, and in the javascript function submit your form. If you need more details let me know.
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Moving this to the HTML and JavaScript forum...

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
<p onclick="document.FormName.submit()">Text</p>


<a href="javascript:"document.FormName.submit()">Text</a>

I agree. Here's the link: http://aspose.com/file-tools
subject: submitting a form
jQuery in Action, 3rd edition