phpcheck.input.class.html.php Total: 46 Tests, 0 Errors, ↻all
PHPCheck V1.66, OS: Linux, Machine: el8_9.x86_64, PHP-Version: 8.2.18 (64 Bit), Time: 1.570 ms (AVG: 0.034 ms), Memory: 2.0M (512M)

Cycle:1

CommentLineCodeResultTest
show POST 22 $result $_POST;
$t->check($resulttrue); 
[0.005 ms]
array (
)
Ok
exist versions info 27 $info $t->getClassVersion("html");
$t->check($info, !empty($info)); 
[0.231 ms]
1.9.22
Ok
create input text 31 $html html::input('text','text eingeben','text');
$t->checkHTML($html); 
[0.331 ms]
Ok
create input text with list of attributes 35 $html html::input('name="text2" id="t2"','text eingeben','text');
$t->checkHTML($html,'id="t2"'); 
[0.037 ms]
Ok
create input text with array of attributes 39 $attributes = array("name" => "text3""id" => "t3");
$html html::input($attributes,'text eingeben','text');
$t->checkHTML($html,'input,name="text3",id="t3"'); 
[0.027 ms]
Ok
create input text name=array 44 $html html::input('textarr[1]','text eingeben','text');
$t->checkHTML($html); 
[0.027 ms]
Ok
create input text with request-value 48 $request = array("text_r" => "Hier Text eingeben");
$html html::input('text_r','','text',$request);
$t->checkHTML($html,'input,text_r,Hier'); 
[0.021 ms]
Ok
create input password 53 $html html::input('password','password','password');
$t->checkHTML($html); 
[0.020 ms]
Ok
create input hidden 57 $html html::input('hidden','hidden1','hidden');
$t->checkHTML($html); 
[0.018 ms]
Ok
create input submit 61 $html html::input('submit2','submit2','submit');
$t->checkHTML($html); 
[0.018 ms]
Ok
create input search 65 $html html::input('search','suchstring','search');
$t->checkHTML($html); 
[0.016 ms]
Ok
input search with datalist 69 $data = array('Auto','Bahn','Motorrad');
$html html::dataList('fahrzeuge',$data);
$html .= html::input('name="search2" list="fahrzeuge"','','search');
$t->checkHTML($html,'<option,Auto,Bahn,Motorrad',true); 
[0.030 ms]
Ok
create input tel 75 $html html::input('tel','','tel');
$t->checkHTML($html); 
[0.021 ms]
Ok
create input url 79 $html html::input('url','http://jspit.de','url');
$t->checkHTML($html); 
[0.018 ms]
Ok
create input email 83 $html html::input('email','','email');
$t->checkHTML($html); 
[0.016 ms]
Ok
create input date 87 $html html::input('date','2016-10-16','date');
$t->checkHTML($html); 
[0.016 ms]
Ok
create input datetime 91 $html html::input('datetime','25.07.2016 19:30','datetime');
$t->checkHTML($html); 
[0.017 ms]
Ok
create input datetime-local 95 $html html::input('datetimeLocal','2015-01-21T13:05','datetime-local');
$t->checkHTML($html); 
[0.017 ms]
Ok
create input time 99 $html html::input('time','00:00','time');
$t->checkHTML($html); 
[0.016 ms]
Ok
create input month 103 $html html::input('month','','month');
$t->checkHTML($html); 
[0.017 ms]
Ok
create input week 107 $html html::input('week','','week');
$t->checkHTML($html); 
[0.016 ms]
Ok
create input number 111 $html html::input('number','','number');
$t->checkHTML($html); 
[0.015 ms]
Ok
create input (Float) number 115 $html html::input('name="fnumber" step="0.01"','','number');
$t->checkHTML($html); 
[0.015 ms]
Ok
create input number with range 119 $html html::input('name="number_range" min="1" max="9"','4','number');
$t->checkHTML($html); 
[0.015 ms]
Ok
create input range 123 $att 'name="range" min="100" max="200" step="10"';
$html html::input($att,'150','range');
$t->checkHTML($html); 
[0.016 ms]
Ok
create submit button 128 $html html::submit('submit3');
$t->checkHTML($html); 
[0.006 ms]
Ok
create submit button "Go" 132 $html html::submit('submit4','Go');
$t->checkHTML($html); 
[0.004 ms]
Ok
create submit button with Info 123 136 $html html::submit('submit5','Go',123);
$t->checkHTML($html); 
[0.064 ms]
Ok
create submit button with "myInfo" 140 $html html::submit('submit5',null,"myInfo");
$t->checkHTML($html); 
[0.008 ms]
Ok
create a button with type submit 144 $html html::button('submit6',"Button6","myInfo2");
$t->checkHTML($html); 
[0.007 ms]
Ok
create html checkbox checked=false 149 $html html::checkbox('chk1',false);
$t->checkHTML($html); 
[0.008 ms]
Ok
create html checkbox checked 153 $html html::checkbox('chk2',true);
$t->checkHTML($html); 
[0.006 ms]
Ok
create html checkbox result from $_POST 157 $html html::checkbox('name="chk3"',null);
$t->checkHTML($html); 
[0.029 ms]
Ok
create checkbox unamed-array-name 161 $html html::checkbox('name="chk[]" value="A"',null);
$html .= html::checkbox('name="chk[]" value="B"',null);
$t->checkHTML($html); 
[0.016 ms]
Ok
create checkbox array-name 166 $html html::checkbox('name="chknr[0]" value="nr0"',null);
$html .= html::checkbox('name="chknr[1]" value="nr1"',null);
$t->checkHTML($html); 
[0.039 ms]
Ok
create checkbox array-name with value 0 or 1 171 $html html::checkbox('name="chknr[a]"',null);
$html .= html::checkbox('name="chknr[b]"',null);
$t->checkHTML($html); 
[0.029 ms]
Ok
create checkbox array-name 176 $html html::checkbox('name="chkkey[125]" value="nr0"',null);
$html .= html::checkbox('name="chkkey[375]" value="nr1"',null);
$t->checkHTML($html); 
[0.033 ms]
Ok
create Radio Buttons 182 $config = array(
  
'1' => 'Radio 1',
  
'2' => 'Radio 2'
  
);
$html html::radio('name="radio"'$config);
$t->checkHTML($html); 
[0.160 ms]
Ok
Radio Buttons, defaultselect 1 190 $config = array(
  
'1' => 'Radio 1',
  
'2' => 'Radio 2'
  
);
$html html::radio('name="radio2"'$config1);
$t->checkHTML($html); 
[0.016 ms]
Ok
Radio Buttons, defaultselect 2 198 $config = array(
  
'1' => 'Radio 1',
  
'2' => 'Radio 2',
  
'3' => 'Radio 3'
  
);
$html html::radio('name="radio3"'$config2);
$t->checkHTML($html); 
[0.014 ms]
Ok
Radio Buttons + CSS 207 $css4 '.rad4 {display: block; cursor: pointer;
  border:1px solid gray;background-color:yellow;}
.rad4 input {margin: 0 20px 0 5px; cursor: pointer;}'
;
$t->addCss($css4); //add new style
$config = array(
  
'1' => 'Radio 1',
  
'2' => 'Radio 2'
  
);
$html html::radio('name="radio4" class="rad4"'$config);
$t->checkHTML($html); 
[0.021 ms]
Ok
textarea 220 $attribute 'name="texta1" row=4 col=30';
$html html::textarea($attribute,'Ersttext');
$t->checkHTML($html); 
[0.008 ms]
Ok
textarea with CSS 225 $t->addCss('.myTextArea {
    width: 90%;
    height: 150px;
    padding: 2px 4px;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #f8f8f8;
    resize: none;
}'
);
$html html::textarea('name="texta2" class="myTextArea"');
$t->checkHTML($html); 
[0.006 ms]
Ok
Autocomplete Datalist for Input 239 $data = array('Auto','Bahn','Motorrad');
$html html::dataList('autoliste1',$data);
$html .= html::input('name="autos" list = "autoliste1"');
$t->checkHTML($html,'<option,Auto,Bahn,Motorrad',true); 
[0.044 ms]
Ok
Autocomplete Datalist2 for Input 245 $data = array(=> 'Auto'=> 'Bahn'3=> 'Motorrad');
$html html::dataList('autoliste2',$data);
$html .= html::input('name="autonumbers" list = "autoliste2"');
$t->checkHTML($html,'<option,Auto,Bahn,Motorrad',true); 
[0.031 ms]
Ok
Label for Input 251 $html html::label('id1','Input:')."<br>\n";
$html .= html::input('id1');
$t->checkHTML($html,'<label,Input',true); 
[0.025 ms]

Ok