JavaScript to PHP

Posted by Kemrop on Stack Overflow See other posts from Stack Overflow or by Kemrop
Published on 2010-05-09T19:44:23Z Indexed on 2010/05/09 19:48 UTC
Read the original article Hit count: 177

Filed under:
|

I am trying to send a variable from a Javascript to a php script but what gets sent is just the first string and the rest is discarded.Dont know what i would be doing wrong. Here is my code: <script type="text/javascript"> document.write('

  • Historical Category 2
  • ') </script>

    My $_GET['category'] at the server side only prints Historical? Dont know what i may be missing or if there is a better way of passin data from a Javascript to PHP,i will appreciate.

    © Stack Overflow or respective owner

    Related posts about JavaScript

    Related posts about php