PHP cannot recognise javascript variables because javascript is 
interpreted via the browser, and not the server (which php is). for php 
to use javascript variables, you must post the variable to another page 
using either a form or querystring.

Adam

> <script>
>
> c=document.forms[0].category.options[document.forms[0].category.selectedIndex]
> .text
> <?php
> $x=c;
> ?>
>
> </script>
>
> but the php doesn't understand this c variable


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to