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

Tutorials

>

Tutorial Radiobutton

>

Tutorial : 2 Radio buttons


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

Tutorial : 2 Radio buttons:



Go back to tutorial of the componant Radiobutton



Source code

Source code


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

<?php
class Radiobutton02 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : 2 Radio buttons";
        
        
$this->render = new WSPObject();
        
$radio = new RadioButtonGroup($this);
        
$radio->addRadioButton("Radio 1");
        
$radio->addRadioButton("Radio 2");
        
$radio->setValue("Radio 2"); // init selected radio
        
$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