- Untitled
- Thursday, July 20th, 2006 at 4:31:38pm MDT
- html file:
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
- <!--
- body,td,th {
- color: #00FF00;
- }
- body {
- background-color: #000000;
- }
- -->
- </style><title>Add Tickets</title></head>
- <form method="post" action="input.php">
- <input type="hidden" name="id" value="null">
- <table>
- <tr><td align="center">Name</td>
- <td><input type="text" name="name"></td>
- </tr>
- <td align="left">Item</td>
- <td><select name="item">
- <option>Dreamfoil</option>
- <option>Icecap</option>
- <option>Gromsblood</option>
- <option>Black Lotus</option>
- <option>Stonescale Eel</option>
- <option>Mountain Silversage</option>
- <option>Golden Sansam</option>
- <option>Flask of the Titans</option>
- <option>Flask of Supreme Power</option>
- </select>
- X <input type="text" name="quantity" size="5" />
- </td>
- </tr>
- <tr>
- <td align="left">Tickets</td>
- <td><input type="text" name="tickets"></td>
- </tr>
- <tr>
- <tr><td colspan="2">
- <p align="center">
- <input type="submit" value="Add tickets">
- </td>
- </tr>
- </table>
- </form>
- </center>
- </html>
- -------------------------------------------------------------------
- php file:
- <style type="text/css">
- <!--
- body {
- background-color: #000000;
- }
- body,td,th {
- color: #00FF00;
- }
- table,td,tr,th{
- border-style:dashed;
- border-color: red;
- border-width:1px;
- }
- -->
- </style>
- <?
- include('conf.php');
- $sqlquery = "INSERT INTO $table VALUES('$id','$name','$item','$quantity','$tickets')";
- $results = mysql_query($sqlquery);
- mysql_close();
- print "<html><body><left>";
- print "<p>You have just added this info:<p>";
- print "Name : $name<br>";
- print "Item: $item<br>";
- print "Quantity: $quantity<br>";
- print "Tickets = $tickets";
- print "</body></html>";
- ?>
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.