ASP 101 - Active Server Pages 101 - Web04
The Place ASP Developers Go!

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash





Sample HTML Code generated by the ASP:
<form action="/samples/form_dynamic.asp" method="post">
<!-- This section is always shown -->
<p>
How many numbers would you like to enter?
</p>
<!-- There's no reason this has to be a select box.  You could just as
easily let the user type in a number, but I didn't want to deal with
the additional validation.  Your situation will probably determine if
the wider range of choices is worth the validation work.
-->
<select name="fields">
	<option>1</option>
	<option>2</option>
	<option selected="selected">3</option>
	<option>4</option>
	<option>5</option>
	<option>6</option>
	<option>7</option>
	<option>8</option>
	<option>9</option>
	<option>10</option>
	<option>11</option>
	<option>12</option>
	<option>13</option>
	<option>14</option>
	<option>15</option>
	<option>16</option>
	<option>17</option>
	<option>18</option>
	<option>19</option>
	<option>20</option>
</select>
<input type="submit" name="submit" value="Enter Numbers Now">
<!-- This section changes based on what pass through the script we're on. -->
	<p>
	You indicated you wanted to enter 3 numbers.  Enter them below:
	</p>
		<strong>Number 1: </strong><input type="text" name="number" value="1" /><br />
		<strong>Number 2: </strong><input type="text" name="number" value="2" /><br />
		<strong>Number 3: </strong><input type="text" name="number" value="3" /><br />
	<input type="submit" name="submit" value="Submit Numbers">
</form>


Output

Samples
Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers