Member Avatar

Hi I've been searching for an example on how to created multiple dropdown lists in Ajax and finally managed to find one: [URL="http://www.coursesweb.net/ajax/multiple-select-dropdown-list-ajax_t"]http://www.coursesweb.net/ajax/multiple-select-dropdown-list-ajax_t[/URL] I got the example up and running on my server, but when I started to modify it to fit my own database, I got a problem with the character encoding - see here: [URL="http://www.hafdal.dk/testing/test.php"]http://www.hafdal.dk/testing/test.php[/URL] I've tried to edit the header info in the php files, without any luck so I'm beginning to think that it is in the ajax part: [CODE] // Multiple select lists - www.coursesweb.net/ajax/ // function used to remove the next lists already displayed …

+0 forum 0
Member Avatar

Dear Members, I have three drop downs 1. Expense Type (Maintenance & Running) 2. Maintenance Expense 3. Running Expense All are populated through there data bases. I want, if i select maintenance from first only maintenance will be available and if running expense only running expense values are available. your soonest reply will be highly appreciated. Regards

+0 forum 0
Member Avatar

Below is [B][U]SOME[/U][/B] code from my [U]drop down box class[/U]. I would like to make the drop down box sticky so that when a user fills out the form and makes a mistake, or leave out a certain field, the values he/she selected from the drop down box remain intact with the reload. [CODE] function tooString() { $text="<tr><td><b>".$this->drophead."</b></td></tr> <tr><td></td><td><b>".$this->label."</b></td> <td> <select name='".$this->name."'>"; foreach($this->options as $option) $text.="<option value='".$option."'>".$option."</option>"; $text.="</select> </td> </tr><tr><td></td></tr>"; return $text; } } ?>[/CODE]

+0 forum 0

The End.