Re: dynamically adding rows to same form.

From: Date: Sun, 29 Apr 2001 02:40:17 +0000
Subject: Re: dynamically adding rows to same form.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-50786@lists.php.net to get a copy of this message
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" <rabhide@ptc.com> To: <php-general@lists.php.net> 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: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#50786) next »