View Single Post
  #1 (permalink)  
Old Jan 21st, 2008, 21:13
skuliaxe skuliaxe is offline
Junior Member
Join Date: Jan 2008
Location: Reykjavik
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
How to automatically 'add column' to table?

Hi, I'm working on a web page where users fill in a form (about species).
The form has some basic input fields, radio buttons and an file upload option. But I would also like to give the user an option on adding a NEW text-area him/herself with a subject heading. I´m currently asking for help regarding that option over here.

If or when I manage to do that:
How will I be able to add those new text areas to the database?
Seeing as that I don´t have X number of table column for that information.

Would there be a counter for each new text area, and an WHILE function in the PHP code? (While new textarea = add column X to table)

I´m terrible at this stuff and seem to have dug my own grave with this project that I have to do. Any help would be great.
Thanks

Last edited by skuliaxe; Jan 22nd, 2008 at 00:59.
Reply With Quote