Create new line

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I am not sure I post to correct forum or not, anyway, my question is

I create some textfield in tabular format (in loop 10 times). Now I want
to add function "add new line" where I click ADD, it will create new text
field shown in the form, is it possible to do?

Sorry that my question is not clear as I am newbie in this field.

Re: Create new line

On Fri, 24 Mar 2006 02:00:03 -0500, juicy wrote:

Quoted text here. Click to load it

It's possible, but you're looking for a Javascript newsgroup.



Andy Jeffries MBCS CITP ZCE   | gPHPEdit Lead Developer | PHP editor for Gnome 2 | Personal site and photos

Re: Create new line

juicy wrote:
Quoted text here. Click to load it

Hi, Juicy,

Sure, it's possible.  It will take a little work but not too bad.

Submit the form back to the same page.  Keep track of the number of lines  
currently being displayed, probably in a hidden field.  Then simply add one to  
the count and run your loop again.

Don't forget to fetch the data from the existing page and add it when you build  
the new page.

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Site Timeline