Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <label> ID: </label><input type="text" name="id"/>
- <label>Name :</label><textarea name='Name'></textarea>
- <label>Value :</label><br /><input type="text" name="Value"/>
- <input type="submit" name="submit" value=" submit "/>
- <?php
- session_start();
- echo "<table>
- <tr>
- <th>ID</th>
- <th>Name</th>
- <th>Value</th>
- </tr>";
- if (isset($_POST['submit'])) {
- echo "
- <tr>
- <td>".$_POST['id']."</td>
- <td>".$_POST['Name']."</td>
- <td>".$_POST['Value']."</td>
- </tr>";
- }
- <?php
- session_start();
- echo "<table>
- <tr>
- <th>ID</th>
- <th>Name</th>
- <th>Value</th>
- </tr>";
- if (isset($_POST['submit'])) {
- $_SESSION['posts'][] = $_POST;
- foreach ($_SESSION['posts'] as $post)
- echo "<tr>
- <td>{$post['id']}</td>
- <td>{$post['Name']}</td>
- <td>{$post['Value']}</td>
- </tr>";
- }
- <?php
- session_start();
- echo "<table>
- <tr>
- <th>ID</th>
- <th>Name</th>
- <th>Value</th>
- </tr>";
- if (isset($_POST['submit'])) {
- $_SESSION['posts'][] = $_POST;
- foreach ($_SESSION['posts'] as $post)
- echo "<tr>
- <td>{$post['id']}</td>
- <td>{$post['Name']}</td>
- <td>{$post['Value']}</td>
- </tr>";
- }
- ?>
- <form action="" method="post">
- <label> ID: </label><input type="text" name="id"/><br>
- <label>Name :</label><textarea name='Name'></textarea><br>
- <label>Value :</label><br /><input type="text" name="Value"/><br>
- <input type="submit" name="submit" value=" submit "/><br>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement