Submit a form - Complex!

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

  1. #1

    Default Submit a form - Complex!

    Hi all,

    I am very very troubled by my problem and am very nearly running out of time.
    I am not sure what I am trying to do is even possible. However, if it is I
    would greatly appreciate any advice anyone can give me.

    I am designing ASP pages that work with my database. I have a page with a
    form. Various textbox criteria that the user can enter. The user then clicks
    the submit button, and is redirected to the appropriate page with the
    appropriate results of the criteria entered earlier, displayed.

    This all works fine. But what I want to do is this:

    How do I give the user the choice to be directed to one of three following
    pages?? What I mean is, I wish to submit the form parameters to any of three
    following pages. Namely these are, Items to buy, Items to loan and all items.

    It would be perfect if there was a button in which I could attach a URL
    (where the form parameters should be passed to). But this is not the case. The
    Submit button in dreamweaver has no control over what URL the user is directed
    to. This is entered in the "form" parameter. And from what I know, I am only
    able to enter one here.

    Any help would be greatly appreciated!

    Thanks


    Ricky S

    Ricky S Guest

  2. Similar Questions and Discussions

    1. Form does not submit in Mac
      Hi all, I am using the submitForm() on my submit button. I have set the URL to "/Save.aspx" which will get the submitted information and doing...
    2. Need Help With Submit Form
      I have DW 3 and designing my own site. I would like my customer to be able to fill out a form. I know how to create a form, I don't know how to get...
    3. Complex Dynamic Form Calc?
      This question is so obscure I'm not sure how to pose it. I have a shopping cart site, apparel that comes in several sizes will dynamically create...
    4. Form Field/ Form Submit Problems (probably an easy answer...)
      Hey Everyone.. I have a form that has approximately 7 text fields and 1 checkbox. Generally when this form is submitted(to itself BTW) it works...
    5. Adding/Updating records on form with complex query
      I have a database with several tables. The main table has an ID field as its primary key and the other tables all contain extra information and are...
  3. #2

    Default Re: Submit a form - Complex!

    Hi,

    It is possible. You need to write a JavaScript function that will alter the
    action property of your form when it's submitted. Probably the easiest way
    to do this is to get rid of your traditional submit button, and create three
    submit links instead. These links call the JavaScript function with
    different parameters.

    The function itself just needs for find the form, change it's action
    property to the parameter supplied with the call, and submit the form. All
    pretty simple really.

    Rob



    Ricky S wrote:
    > Hi all,
    >
    > I am very very troubled by my problem and am very nearly running out
    > of time. I am not sure what I am trying to do is even possible.
    > However, if it is I would greatly appreciate any advice anyone can
    > give me.
    >
    > I am designing ASP pages that work with my database. I have a page
    > with a form. Various textbox criteria that the user can enter. The
    > user then clicks the submit button, and is redirected to the
    > appropriate page with the appropriate results of the criteria entered
    > earlier, displayed.
    >
    > This all works fine. But what I want to do is this:
    >
    > How do I give the user the choice to be directed to one of three
    > following pages?? What I mean is, I wish to submit the form
    > parameters to any of three following pages. Namely these are, Items
    > to buy, Items to loan and all items.
    >
    > It would be perfect if there was a button in which I could attach a
    > URL (where the form parameters should be passed to). But this is not
    > the case. The Submit button in dreamweaver has no control over what
    > URL the user is directed to. This is entered in the "form" parameter.
    > And from what I know, I am only able to enter one here.
    >
    > Any help would be greatly appreciated!
    >
    > Thanks
    >
    >
    > Ricky S

    rob::db Guest

  4. #3

    Default Re: Submit a form - Complex!

    Hi Rick,
    your deadline is passed O would say. Have got a little time for myself? I'm
    trying to get a login behaviour with some small database (mdb) and so far I get
    the asp page on my screen I can enter username and password but I'm not
    directled to a page. What do I do wrong?
    Tanxinadvance steven

    mister stefan 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