Hi Rahul
A simple solution could be
if(empty(num_of_rows)){num_of_rows=some_default_value ;}
while (num_of_rows>0){
<tr>
what you want to do in that row
</tr>
}
<form method=post action = $PHP_SELF?row=($num_of_row+1) >
<input type=submit.......>
</form>
Well, this is a very raw answer, I haven't even taken care of proper syntax.. But I
hope may help you in a small way. If you want
do tell me and I will try to write a small example for you. But for that you should
tell me the problem in more detail ;-)
Subodh Gupta
I have learned, Joy is not in things, it is in us.
You will ultimately be known by what you give and not what you get.
----- Original Message -----
From: "Rahul Bhide" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 28, 2001 12:28 PM
Subject: [PHP] dynamically adding rows to same form.
Gurus ,
Problem : my php form has a 4 text field with one row . I want to put an
"add another row" button at the end of the row such that clicking will
bringup the previous row as well as add a new row below it for further
input of data .
let me know ,
thanks and regards,
~Rahul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]