[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.3

I need code that will auto populate number of fields based a quantity that is selected

Asked by tech1950 in Miscellaneous Software, Web Languages/Standards, PHP and Databases

I have created an online order form.  I need the requestor to provide me with the name(s) of the person they are ordering equipment for.  They can order from 1-10 pieces of equipment.  I have a dropdown box from which they can select the quantity.  Instead of me having to create 10 username fields,  I need is code that will auto populate the number of fields for the name based on the quantity they select.  For instance if qty is 4 then 4 username fields are displayed, if qty is 2 then only 2 username fields are displayed, etc.

Qty = 4                              Qty = 2
Username                               Username              
Username                               Username              
Username
Username


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:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
<body>
						<table border="0" cellspacing="0" cellpadding="6" width="99%" id="document-display">
  <tr>
    <td>
<p>
<span class="sub"></span>
</p>
<p>
<p>
      <p class='docheader'><strong>Online PC Equipment Request Form</strong></p>
<script language='Javascript' src='/common/js/formfunc.js'></script>
<form action='/www/form_submit/56' method='POST' enctype='multipart/form-data'>
        <table border=0 cellspacing=0 cellpadding=3 width='100%' class='webform'>
          <tr valign='top' class='optional'> 
            <td colspan='4'><p class='body'><strong>Contact Information</strong></p></td>
          </tr>
          <tr valign='top' class='required'> 
            <td colspan="2"><span class='body'>Name of person requesting equipment</span>&nbsp;</td>
            <td colspan="2"><input type='text' name='Name of person requesting equipment' size=35></td>
          </tr>
          <tr valign='top' class='required'> 
            <td colspan="2"><span class='body'>Location city and state</span>&nbsp;</td>
            <td colspan="2"><input type='text' name='Location city and state' size=35></td>
          </tr>
          <tr valign='top' class='required'> 
            <td colspan="2"><span class='body'>Facility name</span>&nbsp;</td>
            <td colspan="2"><input type='text' name='Facility name' size=35></td>
          </tr>
          <tr valign='top' class='required'> 
            <td colspan="2"><span class='body'>Facility General Manager</span>&nbsp;</td>
            <td colspan="2"><input type='text' name='Facility General Manager' size=35></td>
          </tr>
          <tr valign='top' class='optional'> 
            <td colspan="2"><span class='body'>Shipping address (if different 
              than location address)</span>&nbsp;</td>
            <td colspan="2"><input type='text' name='Shipping address (if different than location address)' size=35></td>
          </tr>
          <tr valign='top' class='optional'> 
            <td colspan="4"><hr size='1'/></td>
          </tr>
          <tr valign='top' class='optional'> 
            <td colspan="4"><strong>Select the items and quantity below:</strong></td>
          </tr>
          <tr valign='top' class='optional'> 
            <td colspan="2"><span class='body'><strong>Dell Desktop PC (Kenco-Desktop)</strong></span><strong>&nbsp;</strong></td>
            <td colspan="2"><select name='Dell Desktop PC (Kenco-Desktop)' size=1>
                <option value='0'>0</option>
                <option value='1'>1</option>
                <option value='2'>2</option>
                <option value='3'>3</option>
                <option value='4'>4</option>
                <option value='5'>5</option>
                <option value='6'>6</option>
                <option value='7'>7</option>
                <option value='8'>8</option>
                <option value='9'>9</option>
                <option value='10'>10</option>
              </select></td>
          </tr>
          <tr valign='top' class='optional'> 
            <td colspan="2"><strong>Please provide username and status for each 
              computer ordered or use N/A if information not known.</strong> </td>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr valign='top' class='optional'> 
            <td width="9%">Username</td>
            <td width="35%"><input type='text' name='User Name(s)2' size=35></td>
            <td width="10%"><input name='New' type='checkbox' id="New" value='checked'> 
              <span class='body'>New</span> </td>
            <td width="46%"><input type='checkbox' name='Replace existing equipment' value='checked'> 
              <span class='body'>Replace existing equipment</span> </td>
          </tr>
          <tr valign='top' class='optional'> 
            <td>Username</td>
            <td><input type='text' name='User Name(s)2' size=35></td>
            <td><input name='New' type='checkbox' id="New" value='checked'> <span class='body'>New</span> 
            </td>
            <td><input type='checkbox' name='Replace existing equipment' value='checked'> 
              <span class='body'>Replace existing equipment</span> </td>
          </tr>
          <tr valign='top' class='optional'> 
            <td>Username</td>
            <td><input type='text' name='User Name(s)2' size=35></td>
            <td><input name='New' type='checkbox' id="New" value='checked'> <span class='body'>New</span> 
            </td>
            <td><input type='checkbox' name='Replace existing equipment' value='checked'> 
              <span class='body'>Replace existing equipment</span> </td>
          </tr>
          <tr valign='top' class='optional'> 
            <td>Username</td>
            <td><input type='text' name='User Name(s)2' size=35></td>
            <td><input name='New' type='checkbox' id="New" value='checked'> <span class='body'>New</span> 
            </td>
            <td><input type='checkbox' name='Replace existing equipment' value='checked'> 
              <span class='body'>Replace existing equipment</span> </td>
          </tr>
          <tr valign='top' class='optional'> 
            <td>Username</td>
            <td><input type='text' name='User Name(s)2' size=35></td>
            <td><input name='New' type='checkbox' id="New" value='checked'> <span class='body'>New</span> 
            </td>
            <td><input type='checkbox' name='Replace existing equipment' value='checked'> 
              <span class='body'>Replace existing equipment</span> </td>
          </tr>
          <tr valign='top' class='optional'> 
            <td colspan="2"><span class='body'><strong>Dell standard laptop with 
              docking station (Kenco-Laptop1)</strong></span><strong>&nbsp;</strong></td>
            <td colspan="2"><select name='Dell standard laptop with docking station (Kenco-Laptop1)' size=1>
                <option value='0'>0</option>
                <option value='1'>1</option>
                <option value='2'>2</option>
                <option value='3'>3</option>
                <option value='4'>4</option>
                <option value='5'>5</option>
                <option value='6'>6</option>
                <option value='7'>7</option>
                <option value='8'>8</option>
                <option value='9'>9</option>
                <option value='10'>10</option>
              </select></td>
          </tr>
          <tr valign='top' class='optional'> 
            <td>Username</td>
            <td><input type='text' name='User Name(s)2' size=35></td>
            <td><input name='New' type='checkbox' id="New" value='checked'> <span class='body'>New</span> 
            </td>
            <td><input type='checkbox' name='Replace existing equipment' value='checked'> 
              <span class='body'>Replace existing equipment</span> </td>
          </tr>
          <tr valign='top' class='optional'> 
            <td>Username</td>
            <td><input type='text' name='User Name(s)2' size=35></td>
            <td><input name='New' type='checkbox' id="New" value='checked'> <span class='body'>New</span> 
            </td>
            <td><input type='checkbox' name='Replace existing equipment' value='checked'> 
              <span class='body'>Replace existing equipment</span> </td>
          </tr>
          <tr valign='top' class='optional'> 
            <td>Username</td>
            <td><input type='text' name='User Name(s)2' size=35></td>
            <td><input name='New' type='checkbox' id="New" value='checked'> <span class='body'>New</span> 
            </td>
            <td><input type='checkbox' name='Replace existing equipment' value='checked'> 
              <span class='body'>Replace existing equipment</span> </td>
          </tr>
          <tr valign='top' class='optional'> 
            <td>Username</td>
            <td><input type='text' name='User Name(s)2' size=35></td>
            <td><input name='New' type='checkbox' id="New" value='checked'> <span class='body'>New</span> 
            </td>
            <td><input type='checkbox' name='Replace existing equipment' value='checked'> 
              <span class='body'>Replace existing equipment</span> </td>
          </tr>
          <tr valign='top' class='optional'> 
            <td>Username</td>
            <td><input type='text' name='User Name(s)2' size=35></td>
            <td><input name='New' type='checkbox' id="New" value='checked'> <span class='body'>New</span> 
            </td>
            <td><input type='checkbox' name='Replace existing equipment' value='checked'> 
              <span class='body'>Replace existing equipment</span> </td>
          </tr>
          <tr valign='top' class='optional'> 
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr valign='top' class='optional'> 
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr valign='top' class='optional'> 
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr valign='top' class='optional'> 
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr valign='top' class='optional'> 
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr valign='top' class='optional'> 
            <td colspan="2">&nbsp;</td>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr valign='top' class='optional'> 
            <td colspan="2">&nbsp;</td>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr valign='top' class='optional'> 
            <td colspan="2">&nbsp;</td>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr valign='top' class='optional'> 
            <td colspan="2">&nbsp;</td>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr valign='top' class='optional'> 
            <td colspan="2">&nbsp;</td>
            <td colspan="2">&nbsp;</td>
          </tr>
        </table>
</form>
 </p> 
</p>
    </td>
  </tr>
</table>
						&nbsp;
<table border="0" cellspacing="0" cellpadding="6" width="94%" align="center" class="sublevel-links-table">
  <tr>
    <td align="center">
      <a href="/www/docs/311" class="stdlink">IT Tools and Templates</a> 
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  
</table>
<p class="bodycopy" align="center">&nbsp;</p>
					</body>
[+][-]11/10/09 10:06 AM, ID: 25787992Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Miscellaneous Software, Web Languages/Standards, PHP and Databases
Sign Up Now!
Solution Provided By: elvin66
Participating Experts: 1
Solution Grade: A
 
[+][-]11/04/09 08:59 PM, ID: 25746884Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/04/09 09:30 PM, ID: 25746995Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 07:05 AM, ID: 25750190Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/09 02:51 PM, ID: 25754998Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 02:52 PM, ID: 25755005Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/06/09 05:15 PM, ID: 25764494Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/06/09 05:16 PM, ID: 25764498Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/08/09 05:07 PM, ID: 25772839Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/09/09 08:52 AM, ID: 25777646Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/10/09 07:09 AM, ID: 25786080Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/10/09 10:10 AM, ID: 25788024Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625