Jump to content

[SOLVED] AGENT HELP !!!!


aliasneo86

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.