queries are not executing according to radio button

hi everyone

i am getting problem in this code

ths problem is :

there are two queries ,depending on radio button the queries willll exceute .everything is ok ,but only last query is exceuting ,my code is written below

i want :if user select a first radio button and click on the view button first query has to be diplayed or excuted .else if user selet second radio button and click the view button second query should be dipalyed .please help me

<SCRIPT LANGUAGE=JavaScript>

display()

{

somefunction();

check();

}

<FORM NAME=form1 method=post>

<input type="radio" value="1" name="Fee" checked= true>

<input type="radio" value="2" name="Fee" >

<input type="submit" value=" View " name="B1" onclick="display();" >

function check()

{

if(document.form1.Fee[0].checked == true)

{

alert(document.form1.Fee[0].value);

<%

strsql1="select * from buyer_master ";

// rs=statement.executeQuery(strsql1);

%>

}

else if(document.form1.Fee[1].checked == true)

{

alert(document.form1.Fee[1].value);

<%

strsql1="select * from emd_master";

// rs=statement.executeQuery(strsql1);

%>

}

}

out.print(strsql1);

[1324 byte] By [saswat1579a] at [2007-11-27 11:38:11]
# 1

> <SCRIPT LANGUAGE=JavaScript>

See that bit after the word Java. Then take a look at this site and tell me how many times you see the same word after Java.

floundera at 2007-7-29 17:18:46 > top of Java-index,Java Essentials,New To Java...
# 2

Java and JavaScript are not related.

Please use Google to find a JavaScript forum to ask your JavaScript questions.

cotton.ma at 2007-7-29 17:18:46 > top of Java-index,Java Essentials,New To Java...
# 3

Oh. My. God.

This is the fuckwits third time posting this question.

saswat1579! GO TO A JAVASCRIPT FORUM. PLEASE!!

cotton.ma at 2007-7-29 17:18:46 > top of Java-index,Java Essentials,New To Java...
# 4

> Oh. My. God.

>

> This is the fuckwits third time posting this

> question.

If at first you don't succeed, ask and ask again!

floundera at 2007-7-29 17:18:46 > top of Java-index,Java Essentials,New To Java...
# 5

if dont know the anwer,keep ur mouth shut.

saswat1579a at 2007-7-29 17:18:46 > top of Java-index,Java Essentials,New To Java...
# 6

> if dont know the anwer,keep ur mouth shut.

Drop dead u dumb ****.

cotton.ma at 2007-7-29 17:18:46 > top of Java-index,Java Essentials,New To Java...
# 7

> if dont know the anwer,keep ur mouth shut.

Whether we do or don't know the answer is beside the point. You asked in the wrong place. So why don't you keep YOUR mouth shut and fuck off.

floundera at 2007-7-29 17:18:46 > top of Java-index,Java Essentials,New To Java...