SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
-
Jul 6, 2006, 18:33 #1
- Join Date
- Jun 2006
- Posts
- 3
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
How to do Form submission with multiple buttons using javascript - submit()
Hi All,
My problem is that I can find a way to sumbit the form using javascript when there are multiple buttons on the form.
I know that we can do form submission usingCode:form.submit();
On the other side, I use (php)
PHP Code:if(isset($_REQUEST["Save"])) { }
Only thing i need is to find a way to add information about the button tht triggers the form submit().....
i dont know ... but may be likeCode:form.submit("Save");
Last edited by harry000; Jul 13, 2006 at 19:02.
-
Aug 3, 2006, 01:04 #2
for this first u should check which button is clicked
if(save button is clicked) then use form.submit()
if(other button is clicked) then use other things
Bookmarks