Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <!--
- To change this license header, choose License Headers in Project Properties.
- To change this template file, choose Tools | Templates
- and open the template in the editor.
- -->
- <html>
- <head>
- <meta charset="UTF-8">
- <title>SQL insert</title>
- </head>
- <body>
- <form action="index.php" method="post">
- <p>Proizvodjac: <input type="text" name="proizvodjac" /></p>
- <p>Model: <input type="text" name="model" /></p>
- <p><input type="submit" name="submit" value="Upisi" /></p>
- <?php
- if(!empty($_POST["proizvodjac"]) && !empty($_POST["model"])) {
- $proizvodjac = $_POST["proizvodjac"];
- $model = $_POST["model"];
- echo "INSERT INTO baza (Proizvodjac, Model) VALUES ($proizvodjac, $model);";
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement