A couple of simple forms questions.

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default A couple of simple forms questions.

    Forgive me, it's been awhile since I've worked with this stuff...

    I'm creating a simple form to use for order entry. I'll need to include
    entries for billing information, shipping information, and then I'll have
    basically line items which include QTY, model number, description, etc. for the
    item being purchased.

    Do I need to create seperate forms for each section (ie. Shipping, Billing,
    LineItems) or should I create one large form with everything? My page design
    seems like it would be easier to create seperate forms, but then how do I
    submit all forms to the tables they need with a single submit button?

    Any information you can provide would be greatly appreciate.d

    Thanks!

    drewangell Guest

  2. Similar Questions and Discussions

    1. A couple of questions
      I have a Canon A60 and .... 1) I really need to pick up some rechargable AA NiMH batteries. I see packages like this...
    2. A couple of questions before I buy....
      Hi, I have been playing with a 30 day trial version of Contribute 3 and have a couple of questions before I buy. 1. My page uses CSS buttons,...
    3. Some simple questions, I assume, on security (Forms authentication)
      Hi. I just began reading on security (Forms authentication). I have the following two questions: 1. Is there a way to specify the expiration date...
    4. Please help with a couple questions!!!
      I just bought adobe 6.0 standard and my system is win. xp I wrote my book in ms word and then hit the adobe convert button and when it converted...
    5. I have a couple of questions.
      First, I would like to know if there is anyway to add a watermark to pictures, that will only show up only when the photo is printed. My husband...
  3. #2

    Default Re: A couple of simple forms questions.

    Use a single form, but for ease of entry give the visitor the option to copy
    information from one section to another by clicking a checkbox like is shown
    here
    [url]http://javascript.internet.com/forms/copy-fields.html[/url]

    --
    Regards

    Paul Whitham
    Macromedia Certified Professional for Dreamweaver MX2004
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]

    "drewangell" <webforumsuser@macromedia.com> wrote in message
    news:d2udom$f0b$1@forums.macromedia.com...
    > Forgive me, it's been awhile since I've worked with this stuff...
    >
    > I'm creating a simple form to use for order entry. I'll need to include
    > entries for billing information, shipping information, and then I'll have
    > basically line items which include QTY, model number, description, etc.
    for the
    > item being purchased.
    >
    > Do I need to create seperate forms for each section (ie. Shipping,
    Billing,
    > LineItems) or should I create one large form with everything? My page
    design
    > seems like it would be easier to create seperate forms, but then how do I
    > submit all forms to the tables they need with a single submit button?
    >
    > Any information you can provide would be greatly appreciate.d
    >
    > Thanks!
    >

    Paul Whitham TMM Guest

  4. #3

    Default Re: A couple of simple forms questions.

    Thanks for that link...I needed that.

    Any info on how this insert is going to work though? With the shipping and
    billing held in 2 different tables how do I make that work? The billing
    information is held in the customers table while the shipping information is
    held in the Orders table via CustomerID field. So, If I tell the insert to
    apply to the Orders table how is going to know to place the billing information
    and all that in the customers table? Or, if I have it insert into the
    Customers table first how would it then create an order for the person?

    drewangell Guest

  5. #4

    Default Re: A couple of simple forms questions.

    Ok, well I'm getting closer.

    I found a link to a nice short guide on how to insert into more than one
    table: [url]http://www.drdev.net/article01.htm[/url].

    I think I've got it all setup correctly, but I'm not sure what to put for the
    action of the form. The tutorial there doesn't really get into that part.

    When I use the DW insert record behavior it puts a variable name in for the
    action and then has:

    MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
    If (Request.QueryString <> "") Then
    MM_editAction = MM_editAction & "?" & Server.HTMLEncode(Request.QueryString)
    End If

    above everything. Do i need to do something similiar to this or how do I make
    this work???

    Any info is awesome! thanks!

    drewangell Guest

  6. #5

    Default Re: A couple of simple forms questions.

    You action code for the form will simply be to call the same page, assuming
    that you have put all the code on the same page (which is what DW does by
    default)

    --
    Regards

    Paul Whitham
    Macromedia Certified Professional for Dreamweaver MX2004
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]

    "drewangell" <webforumsuser@macromedia.com> wrote in message
    news:d310ea$f6v$1@forums.macromedia.com...
    > Ok, well I'm getting closer.
    >
    > I found a link to a nice short guide on how to insert into more than one
    > table: [url]http://www.drdev.net/article01.htm[/url].
    >
    > I think I've got it all setup correctly, but I'm not sure what to put for
    the
    > action of the form. The tutorial there doesn't really get into that part.
    >
    > When I use the DW insert record behavior it puts a variable name in for
    the
    > action and then has:
    >
    > MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
    > If (Request.QueryString <> "") Then
    > MM_editAction = MM_editAction & "?" &
    Server.HTMLEncode(Request.QueryString)
    > End If
    >
    > above everything. Do i need to do something similiar to this or how do I
    make
    > this work???
    >
    > Any info is awesome! thanks!
    >

    Paul Whitham TMM Guest

  7. #6

    Default Re: A couple of simple forms questions.

    Yes, I did get it working by calling the same page. I appreciate your help.

    Is there a way I can make it then go on to another page, though? Right now it
    just submits and clears out the form and remains on that same page. I would
    like it to go to a "completed successfully" page of some sort.

    How can I make this happen?

    drewangell Guest

  8. #7

    Default Re: A couple of simple forms questions.

    Just place a redirect on the page after the insert code has executed like
    this

    Response.Redirect("page.asp")

    --
    Regards

    Paul Whitham
    Macromedia Certified Professional for Dreamweaver MX2004
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]

    "drewangell" <webforumsuser@macromedia.com> wrote in message
    news:d31l8i$emu$1@forums.macromedia.com...
    > Yes, I did get it working by calling the same page. I appreciate your
    help.
    >
    > Is there a way I can make it then go on to another page, though? Right
    now it
    > just submits and clears out the form and remains on that same page. I
    would
    > like it to go to a "completed successfully" page of some sort.
    >
    > How can I make this happen?
    >

    Paul Whitham TMM Guest

  9. #8

    Default Re: A couple of simple forms questions.

    Where should I put that? I put Response.Redirect(woodOrderForm.asp) right
    after the comm inserts and I'm getting the error:

    Microsoft VBScript runtime (0x800A01A8)
    Object required: 'woodOrderEntryComplete'
    /KennysTile/woodOrderForm/index2.asp, line 80


    drewangell Guest

  10. #9

    Default Re: A couple of simple forms questions.

    Find the last line of the insert statement which should be an "End IF" and
    place it in front of that

    --
    Regards

    Paul Whitham
    Macromedia Certified Professional for Dreamweaver MX2004
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]

    "Paul Whitham TMM" <paul@valleybiz.net> wrote in message
    news:d31lp2$fd3$1@forums.macromedia.com...
    > Just place a redirect on the page after the insert code has executed like
    > this
    >
    > Response.Redirect("page.asp")
    >
    > --
    > Regards
    >
    > Paul Whitham
    > Macromedia Certified Professional for Dreamweaver MX2004
    > Valleybiz Internet Design
    > [url]www.valleybiz.net[/url]
    >
    > Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    > [url]www.macromedia.com/support/forums/team_macromedia[/url]
    >
    > "drewangell" <webforumsuser@macromedia.com> wrote in message
    > news:d31l8i$emu$1@forums.macromedia.com...
    > > Yes, I did get it working by calling the same page. I appreciate your
    > help.
    > >
    > > Is there a way I can make it then go on to another page, though? Right
    > now it
    > > just submits and clears out the form and remains on that same page. I
    > would
    > > like it to go to a "completed successfully" page of some sort.
    > >
    > > How can I make this happen?
    > >
    >
    >

    Paul Whitham 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