Creating a Dynamic form

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

  1. #1

    Default Creating a Dynamic form

    I want to create a form where the user enters their family members' names and
    ages. An input on the form will ask the user to enter the number of people in
    the family, then the form will generate the required fields for entering the
    name and age of each person. Not sure how to go about this. Can I create a
    singe set of inputs for name & age and apply a repeat region based on the
    number of family members entered by the user? I'm using DWMX04 ASP.NET VB and
    SQL. Geoff

    jefreywith1f Guest

  2. Similar Questions and Discussions

    1. Creating Dynamic Flash Tab Form
      Hello I am very new and am trying to learn as much as I can, But I am having a hard tiem getting my head bent around this stuff. I have a table...
    2. Need help creating dynamic form
      I guess I am just looking for some php help here more than anything. I want to know if it is possible to do the following things in php. I have a...
    3. creating a dynamic menu, help please
      hello could someone please tell me how to create a vertical dynamic menu/navigation bar that holds buttons and responds to mouse movement within...
    4. Creating Dynamic graphs
      Hi, I am a beginner in Flash MX action Scripting. I am trying to create a dynamic graph :a histogram to display the frequency distribution. The...
    5. Creating Dynamic Display
      Well the easiest way is to define the over state of the button to be the big text Peter -- Peter Lee Novel Games - Free Game Downloads and...
  3. #2

    Default Re: Creating a Dynamic form

    This should help out a little... just copy and paste all the code into a new
    ASP/VBScript page and run it... You will have to do some modification of
    the code, but this should get you on the right track...

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    </head>

    <body>
    <form name="form1" method="get" action="">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td><input name="MemberNum" type="text" id="MemberNum">
    <input type="submit" name="Submit" value="Submit"></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    </tr>
    </table>
    </form>
    <%
    Dim Num
    Num = Request.QueryString("MemberNum")
    If Num <> "" Then
    For i = 1 to Num
    Response.Write("<table width='100%' border='0' cellspacing='0'
    cellpadding='0'><tr><td width='9%'>Name</td><td width='91%'><input
    type='text' name='textfield'></td></tr><tr><td>Blah</td><td><input
    type='text' name='textfield'></td></tr><tr><td>Blah</td><td><input
    type='text' name='textfield'></td></tr><tr><td>Blah</td><td><input
    type='text' name='textfield'></td></tr><tr><td>Blah</td><td><input
    type='text'
    name='textfield'></td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr></table>")
    Next
    End If
    %>
    </body>
    </html>

    "jefreywith1f" <webforumsuser@macromedia.com> wrote in message
    news:d3ohil$8iv$1@forums.macromedia.com...
    >I want to create a form where the user enters their family members' names
    >and
    > ages. An input on the form will ask the user to enter the number of people
    > in
    > the family, then the form will generate the required fields for entering
    > the
    > name and age of each person. Not sure how to go about this. Can I create a
    > singe set of inputs for name &amp; age and apply a repeat region based on
    > the
    > number of family members entered by the user? I'm using DWMX04 ASP.NET
    > VB and
    > SQL. Geoff
    >

    Drew 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