aliasneo86 Posted November 9, 2008 Share Posted November 9, 2008 Hi all, I have 2 php pages with same elements but they are organized in different ways I want to check one item in the first page and submit the form and the same element of the second page must be checked on page load. I can pass the value from php to java script so far what I have done is this <script type="text/javascript"> <!-- var ch1 = "<?php echo $ch1; ?>"; var ch2 = "<?php echo $ch2; ?>"; var ch3 = "<?php echo $ch3; ?>"; var ch4 = "<?php echo $ch4; ?>"; var ch5 = "<?php echo $ch5; ?>"; if(ch1 == 1){ document.form1.ch1.checked = true; }else{ document.form1.ch1.checked = false; } this is not working can any one help me with this issue? THANK YOU IN ADVANCE Quote Link to comment Share on other sites More sharing options...
aliasneo86 Posted November 9, 2008 Author Share Posted November 9, 2008 solved I made it my self Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.