Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    May 2010
    Posts
    289
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Passing multiple values with window.location.href

    So far I have this

    PHP Code:
     <script>
    window.location.href="data_entry.php?value1=<?php echo $value1?>" +;
    </script>
    how can I pass another value on another variable aside from value1? I want a new variable to get a value. Thanks

  2. #2
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    PHP Code:
     <script>
    window.location.href="data_entry.php?value1=<?php echo $value1?>" +"&value2=<?php echo $value2?>";
    </script>


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •