[FONT="Comic Sans MS"]can i convert a javascript variable in to a php variable..???[/FONT]

    Generally, no, since JavaScript runs on the client side after PHP is already done with the page on the server side and has sent it off to the browser. The only way PHP would "see" a JavaScript variable is if something on the client side transmits a request to a PHP file on the server, such as a form submission or an AJAX request.

      this is my code

      
      <input name="orginfo" type="submit" id="orginfo" value="<?php $count = $count+1 ; $idarray[$count] = $vals[0];?>" onclick="call(<?php echo $count ?>)"/>
      
      

      here i am sending a php variable in to javascript function. i need to convert that variable in to a php variable.

      noway to work.???

        please dear...

        Learn the difference between client side and server side scripting language...

        diff between HTML, JS , and PHP..

        how to integrate them etc etc...

        You will then have a - cool exp...

          okie.. friends.. i understood.... thanks

          a v vishnu

            Write a Reply...