Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title></title>
- </head>
- <body>
- <form action="index.php" method="post">
- Number of Bathrooms: <input type="text" name="bathrooms"><br>
- Number of bedrooms: <input type="text" name="bedrooms"><br>
- Location of House: <input type="text" name="location"><br>
- Size of House: <input type="text" name="size"><br>
- Cost of house: <input type="text" name="cost"><br>
- A short description of hte residence.: <input type="text" name="description"><br>
- location of picture of the server: <input type="text" name="picture"><br>
- <input type="Submit">
- </form>
- testest
- <?php
- $username = "asdasd";
- $password = "asdasd";
- $database = "asdasd";
- $dbname = "asdasd";
- mysql_connect($database,$username,$password);
- @mysql_select_db($dbname) or die( "Unable to select database");
- $bathrooms = $_POST['bathrooms'];
- $bedrooms = $_POST['bedrooms'];
- $location = $_POST['location'];
- $size = $_POST['size'];
- $cost = $_POST['cost'];
- $description = $_POST['description'];
- $picture = $_POST['picture'];
- $addpicture = "INSERT INTO pictureadd VALUES('','$bathrooms','$bedrooms','$location','$size','$cost','$description','$picture')";
- mysql_query($addpicture);
- mysql_close();
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement