Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Order</title>
- </head>
- <body>
- <?php
- $dbhost = 'localhost';
- $dbuser = 'workshe3_test';
- $dbpass = 'cats8000';
- $dbname = 'workshe3_test';
- $my_time = date('h:i:s',time());
- $seconds2add = 1800;
- $new_time= strtotime($my_time);
- $new_time+=$seconds2add;
- $pickUpTime=$new_time;
- $ConfirmNum=rand(1,10000);
- mysql_connect ($dbhost,$dbuser,$dbpass) or die ('Error connecting to mysql');
- mysql_select_db($dbname);
- $conn = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);
- if(!$conn)
- {
- die("Connection failed: " . mysqli_connect_error());
- }
- ?>
- <form action="enterorder.php" method="post">
- Address:<input type="text" name="address" /><br />
- Phone Number:<input type="text" name="phone" /><br />
- First Name:<input type="text" name="first" /><br />
- Last Name:<input type="text" name="last" /><br />
- Toppings:<input type="text" name="toppings" /><br />
- Size:<input type="text" name="size" /><br />
- <input type="submit" value="Enter Order"/>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement