:
If you wanted to do something other field,
replace
echo "Cities : <font id=cities><select>\n";
echo "<option value='0'>=== none ===</option> \n" ;
echo "</select></font>\n";
part, add another id name..
in the ajax php file, made an extension at this part:
from this:
else if ($data=='cities') { // second dropdown
echo "<select name='cities' >\n";
to this
echo "<select name='cities' onChange=\"dochange('new_field', this.value)\">\n";
and of course add another else in the ajax php file, to create the html source code for the 3th element you wanted.
I will create a generator for this you wanted to unlimited elementes 🙂
bye!
jjozsi
www.phpcode.hu