php with javascript

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
prasadharischandra
Forum Commoner
Posts: 57
Joined: Thu May 09, 2002 2:19 am
Location: sri lanka
Contact:

php with javascript

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
toppac
Forum Commoner
Posts: 29
Joined: Fri Jun 14, 2002 10:44 am

Post 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.
prasadharischandra
Forum Commoner
Posts: 57
Joined: Thu May 09, 2002 2:19 am
Location: sri lanka
Contact:

thank u

Post by prasadharischandra »

i did that and u help me more time thank u again
Post Reply