Skip to content

Instantly share code, notes, and snippets.

@raplas
Created March 2, 2017 13:07
Show Gist options
  • Save raplas/1598529122c5cfc41fb773c6469aed20 to your computer and use it in GitHub Desktop.
Save raplas/1598529122c5cfc41fb773c6469aed20 to your computer and use it in GitHub Desktop.
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>form1</title></head><body><form action="form0302.php" method="post">  番号:<br />  <input type="text" name="index" size="30" ><br />  名前:<br />  <input type="text" name="name" size="30" ><br />  自己紹介文:<br />  <input type="text" name="introduce" size="30" ><br />   <input type="submit" value="登録する"  ><br/><table border='1'><tr><th>id</th><th>名前</th><th>自己紹介</th></tr><?phprequire_once 'Introduct0332.php';if (isset($_POST["index"]) && isset($_POST["name"]) && isset($_POST["introduce"])){ $x=$_POST['index']; $y=$_POST['name']; $z=$_POST['introduce'];   $object=new Introduct(); $object->regist_file($x,$y,$z); $object->showAll();    $size= sizeof(file("file.csv"));    echo "<tr>"; for($i = 0; $i < count($array); ++$i ){  $elem = nl2br(mb_convert_encoding($array[$i], 'UTF-8'));  $elem = $elem === "" ?  "&nbsp;" : $elem;  echo("<td>".$elem."</td>"); } echo "</tr>";} ?></body></html> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment