Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form method="post" action="">
- <input type="text" name="grad" />
- <input type="submit" name="submit" value="Добави" />
- </form>
- <?php
- include 'config.php';
- if(isset($_POST['submit'])){
- $grad = $_POST['grad'];
- $sql="INSERT INTO grad (grad) VALUES ('$grad')";
- $result = mysql_query($sql);
- if (!$result)
- {
- die('Error: ' . mysql_error());
- }
- echo "Добавихте един запис.";
- }
- ?>
Add Comment
Please, Sign In to add comment