Is it possible to pass the javascript varible from one php page to another php page. what is the syntax we use.
kings
-7
Junior Poster
Recommended Answers
Jump to Postyou can pass the javascript variables to another page:
<script type="text/javascript"> var x="one"; window.location.href = "yourpage.php?var=" + x; </script>
yourpage.php
$var=$_GET['var']; echo $var;
All 4 Replies
ryan_vietnow
13
Posting Pro
kings
-7
Junior Poster
ryan_vietnow
13
Posting Pro
kings
-7
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.