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 Link to comment https://forums.phpfreaks.com/topic/132019-solved-agent-help/ Share on other sites More sharing options...
aliasneo86 Posted November 9, 2008 Author Share Posted November 9, 2008 solved I made it my self Link to comment https://forums.phpfreaks.com/topic/132019-solved-agent-help/#findComment-686049 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.