Curl checkbox problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
 
 I have a serious problem that i couldnt managed to solve.
 I'm writin a PHP program that manages an optical switch. I'm gettin the data from the switch with curl and modifying some switch settings with curl post. In the curl post section everything is good except the checkbox thing. As far as i understand the switch wants some 1-0 value for the checkbox but it may be different as well since for some other variables, it sometimes accepts some other string values so i cannot be sure. I can set the value to the switch if the checkbox is checked but for an unchecked post it does not set the checked value as unchecked. I just look for the   PHP Code:
          print_r($_REQUEST);  
       
 
. With an checked box it sends "on" value but with an unchecked box it sends a NULL value so the variable couldnt set in the $_REQUEST array. I had sent a NULL value to the switch as well but it didn't worked. I sent 0 or "off" values as well. Neither didn't worked.
 
 Can you help me in this problem please?
       

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux