How do you add "user-defined" fields to a page...

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
matt1019
Forum Contributor
Posts: 172
Joined: Thu Jul 06, 2006 6:41 pm

How do you add "user-defined" fields to a page...

Post by matt1019 »

Hi Guys,

I just saw this feature on one website, where you have a input box (1 liner) and a button next to it labeled "Add Another Field"

This feature is different than devnetwork's forum "poll option" input field because the one here refreshes to add another field... while this guys site dosen't

Now, initially, only one input box is shown with the "add another field" button:

Code: Select all

----------------------------------     -----------------------
|                                        |    | Add Another Field |
----------------------------------    -----------------------
When you click on the add another field button, another inputbox shows up below the first one.... and the process continues as many times as you want to add another input filed.

Now, I can figure it out by looking at the javascirpt code as how the author is doing this :twisted: :twisted: .... and i am sure it would not be hard to replicate it either...

BUT. How would you go about adding the fields to the database?

Thanks,

-Matt
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Posted earlier today
I have to ask: Why are you posting programming-related threads in General Discussion?
matt1019
Forum Contributor
Posts: 172
Joined: Thu Jul 06, 2006 6:41 pm

Post by matt1019 »

Damn I get moved a lot!!! :D:D:D

I need to learn better. Sorry if I ticked off any mods/members. Will do it better the next time ;)

-Matt
matt1019
Forum Contributor
Posts: 172
Joined: Thu Jul 06, 2006 6:41 pm

Post by matt1019 »

sorry feyd. i've the "General Discussion" forum cat as my hopepage for some weird reason... :?

Next time, i will def. post programming question in programmin Cat. (I didn't even notice that Client Side existed on phpdn to be honest... because I never have once gone beyond General, phpcode, mysql, UI, ummm couple others but never at Client Side)

But rest assured, they will not be c++.... ok maybe once more. :D

-Matt
Post Reply