Jump to content

Conditional Form


Fallen_angel

Recommended Posts

I am hoping somone can help me with part of a script I am working on ,  It is a form , that the user enters a report in , however the questions I ask in a few of the sections vary depending on how they have answered a previous question . If you don't quite understand what i mean , a perfect example is often used when you enter your address , it asks you what continent first , and depending what you say in that box , the proceeding boxes and options change to match your continent

is php even the best option for this or would java script be what i shoudl use ?


thanx to anyone who can show me how to do this in advance , even the correct terminoligy would be a great help as it would mean I could search for a tutorial usign the correct wording

Link to comment
https://forums.phpfreaks.com/topic/28061-conditional-form/
Share on other sites

it would depend. for example, does each thing happen on the same page. so lets say what you said and they have to pick a contient then they ask for your state or whatever depending on what your continent is, i would chose javascript.

if you are changing pages with the data then you could use php and just use if statements.
Link to comment
https://forums.phpfreaks.com/topic/28061-conditional-form/#findComment-128422
Share on other sites

that is one thing that i had not decided on , My initial thought was to do a single page form , however that is purely because  thats what i have had past experiance in .
I don't supose you could give me the correct termanology of what i should be looking into , or if you have the time to show me an example that would be greatly apreciated




Link to comment
https://forums.phpfreaks.com/topic/28061-conditional-form/#findComment-128520
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.