IntelliJ Java IDE
The moose likes HTML, CSS and JavaScript and the fly likes Getting submit button value Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Getting submit button value " Watch "Getting submit button value " New topic
Author

Getting submit button value

archana vishwanath
Ranch Hand

Joined: Mar 09, 2004
Posts: 39
PLS HELP ME ERIC
ERIC I'm facing one more problem,I want to get the value of my submit button in my next page,which is not available when I use onsubmit method.Pls advice me how to overcome this.
I need these submit values.

<form name =frm1 method=get action="AAA.jsp" onsubmit="return arsubmit();">
input type="submit" name="stasubmit" value="Save & exit"
input type="submit" name="stasubmit" value="Save & add new

I want stasubmit buttons value in the next page.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
I would say to do something like this:

Eric
 
 
subject: Getting submit button value
 
Threads others viewed
Enable button
Fetching value from database and add some rows and save in another table
How to underline the first letter of a submit button?
posting a form in a new window
Urgent::Problem with Form submission,JS,Enter key
developer file tools