Blogger Information
Blog 2
fans 0
comment 0
visits 1209
Related recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
乘法口诀2
来自星星的博客
Original
549 people have browsed it
<?php
header('content-type:text/html;charset=utf-8');
echo <<<'AA'
<form>
行: <input type="text" name="a">  列:<input type="text" name="b">
<button>确定</button>
</form>    
AA;
$a=isset($_GET['a'])?$_GET['a']:null;    $b=isset($_GET['b'])?$_GET['b']:null;
echo '<table border="0" cellpadding="5" cellspacing="0" width="600">';
for($i=1;$i<=$a;$i++){echo '<tr>';for($j=1;$j<=$b;$j++){
    if($i>=$j){echo '<td>'.($j."x".$i."=".$i*$j).'</td>';}}
echo '</tr>';}
echo '</table>';

1514457817864291.jpg

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!