calling two Actions in a form

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default calling two Actions in a form

    Hi,

    I am creating a php program with an HTML integration. Within my HTML code, I
    called two buttons... my question is, how can I call two different actions or
    page using a single form? Is this correct?

    <form method = "POST" action = "/module/Default/action/Add" , action =
    "/module/Default/action/Search">

    <input type="submit" name="submit" value="submit">
    <input type="submit" name="search" value="search">
    <input type= "text" name="search">

    Thank you....

    :o

    gen23 Guest

  2. Similar Questions and Discussions

    1. using the redirect command with form actions
      i am trying to have a form post first to a cfm scripting page with a mailto function, and then repost to another form action. i tried to write the...
    2. form with alternation of two actions
      well i have a form where i select with checkboxes some data and i want to have two buttons. the first will be the <delete> action ->going in...
    3. calling actions from a script and vice versa (CS)
      Hey I just realized that I can automate a lot of my workflow in illustrator with applescript (I never realized it was scriptable) and I'm running...
    4. Calling functions from Button actions
      <? function func1() { } function func2() { } function func3() { }
    5. [PHP] Calling functions from Button actions
      I would assume you are referring to PHP functions since that is the nature of this list and since PHP only really executes on a web server, and since...
  3. #2

    Default Re: calling two Actions in a form

    I don't think you can do that. What you can do is eiter have two separate
    forms, or, instead of having a submit button, have a link to a JavaScript
    function of the type:

    <a href="javascript:submitForm('form_id','action_type ')">submit</a>

    which dynamically sets the action of the form to 'action_type' and then
    submits the form. You'll have to give the form an id property to do this.



    gen23 wrote:
    > Hi,
    >
    > I am creating a php program with an HTML integration. Within my HTML
    > code, I called two buttons... my question is, how can I call two
    > different actions or page using a single form? Is this correct?
    >
    > <form method = "POST" action = "/module/Default/action/Add" , action
    > = "/module/Default/action/Search">
    >
    > <input type="submit" name="submit" value="submit">
    > <input type="submit" name="search" value="search">
    > <input type= "text" name="search">
    >
    > Thank you....
    >
    > :o

    rob::digitalburn Guest

  4. #3

    Default Re: calling two Actions in a form

    There is an extension at Marja Ribbers-de Vroed's site
    [url]http://www.flevooware.nl/dreamweaver[/url] for doing that.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "gen23" <webforumsuser@macromedia.com> wrote in message
    news:d4dpmo$7ks$1@forums.macromedia.com...
    > Hi,
    >
    > I am creating a php program with an HTML integration. Within my HTML code,
    > I
    > called two buttons... my question is, how can I call two different actions
    > or
    > page using a single form? Is this correct?
    >
    > <form method = "POST" action = "/module/Default/action/Add" , action =
    > "/module/Default/action/Search">
    >
    > <input type="submit" name="submit" value="submit">
    > <input type="submit" name="search" value="search">
    > <input type= "text" name="search">
    >
    > Thank you....
    >
    > :o
    >

    Murray *TMM* Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139