WebSite-PHP Framework PHP
Multi language
Simple Ajax mode
No HTML, no JavaScript
URL rewriting
Mail sending
Sitemap - RSS - Web service
Download WebSite-PHP FrameWork now
 


Loading
 


Tutorial : 2 Radio buttons disabled

Tutorials

>

Tutorial Radiobutton

>

Tutorial : 2 Radio buttons disabled


Radiobutton-04: Tutorial of the composant Radiobutton of the PHP FrameWork WebSite-PHP.

Tutorial : 2 Radio buttons disabled:



Go back to tutorial of the componant Radiobutton



Source code

Source code


File: /pages/tutorials/radiobutton/radiobutton-04.php

<?php
class Radiobutton04 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : 2 Radio buttons disabled";
        
        
$this->render = new WSPObject();
        
$radio = new RadioButtonGroup($this);
        
$radio->addRadioButton("Radio 1");
        
$radio->addRadioButton("Radio 2");
        
$radio->setValue("Radio 2"); // init selected radio
        
$radio->disable();
        
$this->render->add($radio);
    }
}
?>


Go back to tutorial of the componant Radiobutton


Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Home Documentation Download Quick start Tutorials Wiki Issue Tracker