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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.