Jump to content

How to create dynamic html forms with php and java


mikemessiah

Recommended Posts

Hi we are trying to make a form that has multiple comboboxes that need to display different data depending on what is selected in the previous ones. The problem is we dont want a submit button after each selection so it needs to change based on a click event with java ?

 

Any ideas or example code on how to do this.

 

Much appreciated

An alternative way to do this is with AJAX... it's good if you have many, many selections and dont want to prebuffer them. There are plenty of AJAX tutorials online, and integrating them with the above snippet isn't too difficult.

Just put onchange="form1.submit()" in the tag of each select , making sure you replace form1 with the name of your form.

 

I am not 100% sure what you mean by this?

 

Do I make the onchange="VALUE" the name of the selection I want it to show after it is selected?

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.