All pastes #94255 Raw Edit

Something

public text v1 · immutable
#94255 ·published 2006-07-21 03:07 UTC
rendered paste body
input.php:

<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','$tickets')";

$results = mysql_query($sqlquery);

mysql_close();

print "<html><body><center>";
print "<p>You have just added this info:<p>";
print "Name : $name<br>";
print "Tickets : $tickets<br>";
print "</body></html>";
?>


input.htm:
<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="left">Name</td>
<td><input type="text" name="name"></td>
</tr>
<tr>
  <td align="left">Tickets</td>
  <td><input type="text" name="tickets"></td>
</tr>
<tr><td colspan="2">
<p align="center">
<input type="submit" value="Add tickets">
</td>
</tr>
</table>
</form>
</center>
</html>