Page 1 of 1

php with javascript

Posted: Mon Jul 01, 2002 6:48 am
by prasadharischandra
if i select the using <select name=ab>
<option value=cd>cd</option>
</select>
then i want to find out the answer at the same page i.e
i want to use select statement like this
select * from where testfiel='$ab';
please let me know how to do that using javascript and php

Posted: Mon Jul 01, 2002 6:53 am
by twigletmac
Have you read this:
http://www.devnetwork.net/forums/viewtopic.php?t=1030

Could you also define a bit more what you want to do.

Mac

Posted: Mon Jul 01, 2002 2:54 pm
by toppac
Jason covered this pretty well. You cant do it the way you want to do it, you have to reload the page for php to be able to see the variable, since it is a server side language.

thank u

Posted: Tue Jul 02, 2002 12:06 am
by prasadharischandra
i did that and u help me more time thank u again