2012年12月17日 星期一

[PHP] read user text input to itself


<html>
<head>
    <title>Stocktotal Report Portal</title>
</head>
<body>
    <form action="report.php" method="post">
        <input type="text" name="stock_code" value="" />
        <input type="submit" name="submit" value="Submit" />
    </form>

    <?php    
        var_dump($_POST['stock_code']);
    ?>
</body>
</html>

沒有留言:

張貼留言