newphper wrote:I have a snippet of code here that is "the same but different".
What would be the difference do you think ?
The VALUE="yes" is placed differently for some reason ......? To have a checkbox checked by default maybe ??
I have no idea what you mean by placed differently. What exactly is the problem?
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
newphper wrote:The VALUE="yes" is placed differently for some reason ......? To have a checkbox checked by default maybe ??
If you are refering to the position of 'value="yes"' within the tag: No, that doesn't determine whether the box is checked. The php code wrapped up in the input tag does.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering