LoginSignup
0
0

More than 5 years have passed since last update.

php serialize例/メモ

Posted at
serialize.php
<?
echo "<PRE>";
$post = serialize($_POST);
$fromdbpost = $post;


$rowvalue = unserialize($fromdbpost);
echo $rowvalue["a"];
echo "<br>";
echo $rowvalue["b"];
echo "<br>";
echo $rowvalue["c"];
echo "<br>";
echo $rowvalue["d"];
echo "<br>";
echo $rowvalue["e"];

?>
<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>

 <form name="form1" method="POST" action="?act=1">
 <input type="text" name="a" value="a">
 <input type="text" name="b" value="b">
 <input type="text" name="c" value="c">
 <input type="text" name="d" value="d">
 <input type="text" name="e" value="e">
 <input type="button" value="ddddd" onclick="this.form.submit()">
 </form>



 </body>
</html>
0
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0