Jump to content

Drop down Event which calls php scripts


cuvaibhav

Recommended Posts

Hi,

 

I have a drop down whose values are as follows and will be stored in a sql table:

-one

-two

-three

 

When a value is selected in drop down then a certain list has to be displayed which needs to be pulled from sql table... list will vary based on selection...

e.g., When one is selected then display following items:

1] one

2] one one

3] one one one

 

I am new in php so please guide me how to make this happen or please provide a sample code....

 

Thanks and Regards,

Vaibhav

 

Link to comment
https://forums.phpfreaks.com/topic/121946-drop-down-event-which-calls-php-scripts/
Share on other sites

I'll explain a bit more. Ajax = asynchronous JavaScript and XML

It will let the client communicate with the server without reloading the page. So what you would need to do is look into Ajax a bit more.

 

It's not to hard, once you get the gist of it.

Or if you don't want to get your hands too dirty with AJAX, have a look at this JavaScript Framework. It will make your JavaScript/AJAX coding life a lot easier.

 

P.S: script.aculo.us has some effects and stuff on top of Prototype.  It's much cooler. :D

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.