나는 좋은 찾고 CSS 스타일 오프 버튼에 다음 코드를사용자가 확인란을 선택하면 PHP 코드를 제출
<?php
$wifi2g=file_get_contents("wifi2g.txt");
$wifi2g= trim ($wifi2g);
?>
<link rel="stylesheet" type="text/css" href="style.css">
<div class="onoffswitch">
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="myonoffswitch" <?php if ($wifi2g == "enabled") {echo "checked";} ?>>
<label class="onoffswitch-label" for="myonoffswitch">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
난 당신이 wifi2g.txt에서 보는 바와 같이 읽고에있는 버튼의 위치를 정의 할 수 있습니다 또는 꺼짐 (선택 또는 선택 취소). ftp server wifion.php와 wifioff.php에 업로드하고 싶은 두 개의 스크립트가 있습니다. 이 스크립트는 버튼 위치에 따라 다릅니다. 사용자가 버튼 위치를 ON (또는 선택)으로 설정하면 wifion.php를 업로드하고 wifioff.php를 업로드하려면 선택을 해제하거나 선택 취소합니다. 이 작품을 어떻게 만들 수 있습니까? 난 당신이 jQuery를 잘 알고있는 경우 여기에이 버튼을 https://proto.io/freebies/onoff/
계속하려는 경우 사용해야하는 발견 자바 스크립트. – Barmar