Posted By

kbrown on 08/11/11


Tagged

jquery urlstring


Versions (?)

jQuery - Get URL String


 / Published in: JavaScript
 

  1. $(document).ready(function() {
  2.  
  3. <?php
  4. if (isset($_GET["plan"])) {
  5. $finalPlan = $_GET["plan"];
  6. } else {
  7. $finalPlan = 'A';
  8. }
  9. ?>
  10.  
  11. currentPlan = "<?php echo($finalPlan); ?>";
  12.  
  13. });

Report this snippet  

You need to login to post a comment.