Re: adding more fields to a form
- From: Pedro Graca <hexkid@xxxxxxxxxxx>
- Date: 17 Jan 2006 22:17:05 GMT
Bosconian wrote:
> "johnny" <mr_one1999@xxxxxxxxx> wrote in message
> news:1137524462.091908.55470@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> 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.
>
> 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.
Only now did I notice that johnny wants to create tables.
johnny, unless you have a good reason to let users create tables:
Don't do that.
Don't allow users to create tables.
Create all the tables you need before making your script available.
--
If you're posting through Google read <http://cfaj.freeshell.org/google>
.
- Follow-Ups:
- Re: adding more fields to a form
- From: Bosconian
- Re: adding more fields to a form
- References:
- adding more fields to a form
- From: johnny
- Re: adding more fields to a form
- From: Bosconian
- adding more fields to a form
- Prev by Date: Re: FormatDateTime Revisited
- Next by Date: Re: Defining a callback Func for preg_replace_callback(), within some class's method
- Previous by thread: Re: adding more fields to a form
- Next by thread: Re: adding more fields to a form
- Index(es):