|
Posted by Pedro Graca on 09/28/25 11:37
Bosconian wrote:
> "johnny" <mr_one1999@yahoo.com> wrote in message
> news:1137524462.091908.55470@g14g2000cwa.googlegroups.com...
>> 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>
Navigation:
[Reply to this message]
|