Results 1 to 4 of 4

Thread: Multiple actions of a form

  1. #1
    Join Date
    Jun 2009

    Multiple actions of a form

    I want a form that looks to have which, when completed and submit button pressed, performs two actions. I mean i need some java functions that it should actually submits to both actions when i click on submit.I have had trouble finding a proper method to do this so i am here. Could you guys make me know how can i do this ? Please help me guys.

  2. #2
    Join Date
    Feb 2008

    Re: Multiple actions of a form

    You could write a function that fires off on the onSubmit event of
    the form. I have one script but i have not tested it. Well better you try and let me know. i hope it will definitely work for this:-

    function mySubmit() {
    if (data_validates) {
    else {
    return false;
    Or this :

    function doMyStuff()

  3. #3
    Join Date
    May 2008

    Re: Multiple actions of a form

    capture the checkbox value and turn your psuedo code into a real logic statement.Try setting your buttons like...

    <input type="submit" name="action" value="Edit">
    <input type="button" name="action" value="Delete">
    Or try this script:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    <script type="text/javascript">
    function doubleSubmit(f)

    return false;

    <form method="post" action="formmail.php" onsubmit="doubleSubmit(this)">
    <input type="text" name="myTextBox"><br>
    <textarea name="myTextArea"></textarea>
    <input type="submit" value="Double Submit">
    <form action="query.html">
    <input type="hidden" name="qp" value="">
    <input type="hidden" name="qp" value="">
    <input type="text" size="15" maxlength="35" name="qt">
    <input type="submit" value="Search">

  4. #4
    Join Date
    Jun 2009

    Re: Multiple actions of a form

    Thanks a lot friends. That is all what i wanted. Hope this will work for me.

    I appreciate your help. Thank You !!!

Similar Threads

  1. How to access form objects of multiple forms in JavaScript?
    By N I C K in forum Software Development
    Replies: 4
    Last Post: 07-02-2010, 05:42 AM
  2. Verify the content of the textbox with multiple buttons on Form
    By Gadhadhar in forum Software Development
    Replies: 5
    Last Post: 23-01-2010, 02:19 PM
  3. Problem of html form with multiple submit buttons
    By ASHER in forum Software Development
    Replies: 4
    Last Post: 20-10-2009, 05:31 PM
  4. Replies: 3
    Last Post: 09-07-2009, 05:12 PM

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Page generated in 1,716,625,416.71843 seconds with 17 queries