Forms that populate from a external list

csnreyes

New member
Jan 1, 2010
718
9
0
Can anyone recommend a way to create a form that will let users pick from a list(text or php or whatever works) then when a certain choice is made, it auto populates the next form.

IE.
Choosing site category
Social
Information
Video

Then you choose Social and come up with 3 other items
Facebook
Twitter
Tumblr

Already have the lists ready to rock in whatever format is needed. Just puzzled over this.


Tits for your time, thanks
1311990110689.jpg

1311990155399.jpg

1311991186067.jpg

1311991285850.jpg

1312034652618.jpg

1312034727012.jpg

1312046849875.jpg

1312327116245.jpg

1312327103529.jpg
 


This is pretty much a perfect opportunity to implement AJAX. jQuery, Prototype or any of your favorite js frameworks should have it built in.
 
I decided to hire someone to do this since I couldn't get it to work with what I have. I don't have too much knowledge of ajax/jquery
 
I just wondered if it was possible to do this in php alone. On a form you could do it with an update button and then take the data from $_get, or the superglobal array of your choice

I'm not sure if drop down lists are able to send any information to the superglobals either by design or through html or php manipulation.

I would like to find out, though.
 
Ofcourse you can do it through php but you need to refresh the page each time. You just get the $_GET['selectName'] and then find the next fields information as required.

The catch is that the form needs to be submited. With some Javascript you can do it or you need the user to click a button to submit and update the page.