Speedy
11-07-2003, 09:20 PM
I wanna enter a number in a input field so that when it's
submited it will generate a form with that number of rows,
is this possible?
I have this code:
admin.asp
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Admin Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<center>
<form method="post" action="signup.asp">
<table border="1" style="border-collapse: collapse" bordercolor="#000000">
<tr>
<td width="50" align="center"><b>Add</b></td>
<td width="100" align="center"><input type="text" size="10" name="amount"></td>
<td width="50"><input type="submit" value="Generate Sign Up Form"></td>
</tr>
</table>
</form>
</center>
</body>
</html>
signup.asp
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Sign Up Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<center>
<FORM METHOD="POST" ACTION="add.asp">
<table border="1" style="border-collapse: collapse" bordercolor="#000000">
<tr>
<td>ID</td>
<td>First Name</td>
<td>Last Name</td>
<td>Team</td>
<td>Hcp</td>
</tr>
<tr>
<td><INPUT TYPE="TEXT" SIZE="30" NAME="ID"></td>
<td><INPUT TYPE="TEXT" SIZE="30" NAME="Fname"></td>
<td><INPUT TYPE="TEXT" SIZE="30" NAME="Lname"></td>
<td><INPUT TYPE="TEXT" SIZE="30" NAME="Team"></td>
<td><INPUT TYPE="TEXT" SIZE="30" NAME="Hcp"></td>
</tr>
<tr align="left">
<td colspan="5">
<INPUT TYPE="submit" VALUE="Add Post(s)">
</td>
</tr>
</FORM>
</center>
</body>
</html>
/Speedy
submited it will generate a form with that number of rows,
is this possible?
I have this code:
admin.asp
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Admin Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<center>
<form method="post" action="signup.asp">
<table border="1" style="border-collapse: collapse" bordercolor="#000000">
<tr>
<td width="50" align="center"><b>Add</b></td>
<td width="100" align="center"><input type="text" size="10" name="amount"></td>
<td width="50"><input type="submit" value="Generate Sign Up Form"></td>
</tr>
</table>
</form>
</center>
</body>
</html>
signup.asp
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Sign Up Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<center>
<FORM METHOD="POST" ACTION="add.asp">
<table border="1" style="border-collapse: collapse" bordercolor="#000000">
<tr>
<td>ID</td>
<td>First Name</td>
<td>Last Name</td>
<td>Team</td>
<td>Hcp</td>
</tr>
<tr>
<td><INPUT TYPE="TEXT" SIZE="30" NAME="ID"></td>
<td><INPUT TYPE="TEXT" SIZE="30" NAME="Fname"></td>
<td><INPUT TYPE="TEXT" SIZE="30" NAME="Lname"></td>
<td><INPUT TYPE="TEXT" SIZE="30" NAME="Team"></td>
<td><INPUT TYPE="TEXT" SIZE="30" NAME="Hcp"></td>
</tr>
<tr align="left">
<td colspan="5">
<INPUT TYPE="submit" VALUE="Add Post(s)">
</td>
</tr>
</FORM>
</center>
</body>
</html>
/Speedy