CodeIgniterPHP single-choice and unselected Enable
Disable
The transfer from the control layer to the page is status, where 1 is enabled, 2 is disabled, and if the transfer from the control layer is 1, the Select is enabled, and the transfer from the control layer to 2 is disabled.
What I wrote above is ineffective. please give me some advice.
Reply to discussion (solution)
Checked = "checked"
Id = "status" value ="
"/> EnableChecked = "checked"
Value ="
"/> Disable
If this option is not selected, set the value of the checked attribute.
Checked = "checked"
Id = "status" value ="
"/> EnableChecked = "checked"
Value ="
"/> Disable
A php Error was encountered
Severity: Notice
Message: Undefined variable: status
Filename: test/testadd. php
Line Number: 62
If $ status is empty, how does one report an error?
I am making an add and modify operation on the same page.
/> Enable/> Disable
You can write php in the template in this way.
If (true)/** write code here */endif;
Otherwise, they are all curly braces, which are not very nice...
You can write php in the template in this way.
If (true)/** write code here */endif;
Otherwise, they are all curly braces, which are not very nice...
The error message is written as follows:
If (true):/** write code here */endif;
If this option is not selected, set the value of the checked attribute.
Sorry, I am sorry for the mistake. I will give you more next time, prawns.