Ho provato a creare un file php con form ma non succede nulla:
codice:
<?php
function lock() {
global $readonly,$CBs,$CBu,$RBs,$RBu;
$readonly = " readonly"; // testi o similia
$CBs = 'checked onclick="this.checked=true"'; // checkbox
$CBu = 'unchecked onclick="this.checked=false"';
$RBs = 'checked onclick="this.checked=true"'; //radiobutton
$RBu = 'disabled';
}
?>
<form method="post" >
<input type="text" readonly name="test" id="test" required />
<input name="submit" id="submit" type="image" src="images/salva.jpg" border="0" onclick="this.form.action='CalendarioAddProcess';" />
</form>