[PHP-NOTES] note 130307 added to language.functions

[email protected] ("[email protected]")
Newsgroups php.notes
Message-ID <[email protected]>
<form action="Ueben4falk.php" method="get">
        <?php
        echo "<input type='text' name='inp' value='$displayText'>";
        ?>
        <button type="submit">Submit</button>
    </form>
 
    <!-- Bearbeitungsformular -->
    <?php
    if (isset($_GET['edit'])) {
        $editCode = $_GET['edit'];
        $editStmt = $conn->query("SELECT * FROM products WHERE productCode = '$editCode'");
        $editRow = $editStmt->fetch(PDO::FETCH_ASSOC);

        if ($editRow) {
            echo "<h3>Produkt bearbeiten</h3>";
            echo "<form method='get'>";
            echo "<input type='hidden' name='update' value='1'>";
            echo "<input type='hidden' name='productCode' value='" . $editRow['productCode'] . "'>";
            echo "Name: <input type='text' name='productName' value='" . $editRow['productName'] . "'><br>";
            echo "Preis: <input type='text' name='buyPrice' value='" . $editRow['buyPrice'] . "'><br>";
            echo "<input type='submit' value='Ändern'>";
            echo "</form>";
        }
    }
    ?>

</body>
</html>
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 193.170.70.27)
----
Manual Page -- https://php.net/manual/en/language.functions.php
Edit        -- https://main.php.net/note/edit/130307
Del: integrated  -- https://main.php.net/note/delete/130307/integrated
Del: useless     -- https://main.php.net/note/delete/130307/useless
Del: bad code    -- https://main.php.net/note/delete/130307/bad+code
Del: spam        -- https://main.php.net/note/delete/130307/spam
Del: non-english -- https://main.php.net/note/delete/130307/non-english
Del: in docs     -- https://main.php.net/note/delete/130307/in+docs
Del: other reasons-- https://main.php.net/note/delete/130307
Reject      -- https://main.php.net/note/reject/130307
Search      -- https://main.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.