You are here: Re: adding more fields to a form « PHP Programming Language « IT news, forums, messages
Re: adding more fields to a form

Posted by Bosconian on 09/26/00 11:37

"johnny" <mr_one1999@yahoo.com> wrote in message
news:1137524462.091908.55470@g14g2000cwa.googlegroups.com...
> hi all,
>
> I wonder if I could do the following task in PHP before searching for
> javascript which I prefer not to have in my code:
>
> I have a form to create new tables in a database and, since I can't
> know how many columns needs each table, I want to load the page with a
> single text field in the form and then with a button adding more
> fields to the form if required.
>
> so something like this:
>
> text field
> "add more fields" button
> "submit" button
>
> everytime the "add more fields" button is clicked the page reloads and
> the form has another text field to enter the name of the table column.
>
> Can be done with php instead of javascript ?
>
> Thanks in advance for any tip
>
> johnny
>

Seems pretty straightforward and yes, PHP can handle everything including
validation.

I would simply have a form with a single input and submit button. Every time
an entry is submitted, the page refreshes displaying the same form followed
by the list of previously entered values. The form is always at the top of
the page for convenience. You should also inform the user the table creation
table was successful.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация