Ok This is what I'm trying to do
now this is complicated so bear with me
- I have two drop down boxes
a. category
b. sub_category
If category is books then sub category changes to book listing if category car then sub_category is a list of car easy with java but here come the problem
my categoryies are in a mysql database
and my sub_cat too so I need to generate a set of java var using PHP
i.e var Books new Array("life","Drama");
the string would be the sub category
now an HTML Problem
I can Loop thought a get the var names and the sub_cat names but to put the new var on a new line
i.e
var 1
var 2
var 3
using the <BR>
will echo this way
var 1 <BR> var 2 <BR> var 3 <BR>
if I remove the <script Language"Javascript">
it works as far as print the new lines but it prints it to the screen
is there a way to do this
help Please
TIA