只需一步,快速开始
<?php if (isset($_POST['action']) && $_POST['action'] == 'submitted') { print '<pre>'; print_r($_POST); print '<a href="'. $_SERVER['PHP_SELF'] .'">Please try again</a>'; print '</pre>'; } else { ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"> Name: <input type="text" name="personal[name]"><br> Email: <input type="text" name="personal[email]"><br> Beer: <br> <select multiple name="beer[]"> <option value="warthog">Warthog</option> <option value="guinness">Guinness</option> <option value="stuttgarter">Stuttgarter Schwabenbr漉</option> </select><br> <input type="hidden" name="action" value="submitted"> <input type="submit" name="submit" value="submit me!"> </form> <?php } ?>
使用道具 举报
Name: <input type="text" name="personal[name]"><br> Email: <input type="text" name="personal[email]"><br>
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
GMT+8, 2024-11-16 14:20 , Processed in 0.063006 second(s), 16 queries .
© 2021 Powered by Discuz! X3.5.