Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

Change web page content when user selects a value from Combo

General discussions related to php

Moderators: macek, egami, gesf

Change web page content when user selects a value from Combo

Postby vikaspa » Thu Sep 26, 2002 7:43 pm

Dear All,

Please help me !!

I want to sort the data displayed on web page on click of button.


I have a combo in which all user have to select the sort order in which he wants to see the data...(The combo box or drop down box contains values "Name, Department Salary and Grade)

The user select the order (say name) by clicking the combo box or drop down box.

The moment the user releases the combo or drop down box, I want to refresh the page with new sort order.
vikaspa
New php-forum User
New php-forum User
 
Posts: 21
Joined: Wed Jun 19, 2002 10:03 pm

Postby DoppyNL » Fri Sep 27, 2002 12:35 am

add this attribute to you're select field.
Code: Select all
onchange="submit();"

make sure that the field is in a correctly configured form, it will then automaticly post when the value is changed.
for browsers wich have no javascript you can add a small button to submit the form.

Greetz Daan
DoppyNL
 


Return to PHP General

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.