1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82: | <?
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test DB</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<p align="center">
<b><font size="5">Ressourcenbestellung</font></b></p>
<p align="center">
<font color="#FF0000">Alle Angaben sind in k anzugeben.</font></p>
<p>
</p>
<p>
<label>Titan
<input type="text" name="Titan" id="Titan" />
</label>
<label>Silicium
<input type="text" name="Silicium" id="Silicium" />
</label>
<label>Helium
<input type="text" name="Helium" id="Helium" />
</label>
<label>Nahrung
<input type="text" name="Nahrung" id="Nahrung" />
</label>
<label>Wasser
<input type="text" name="Wasser" id="Wasser" />
</label>
</p>
<p>
<label>Bauxit
<input type="text" name="Bauxit" id="Bauxit" />
</label>
<label>Aluminium
<input type="text" name="Aluminium" id="Aluminium" />
</label>
<label>Uran
<input type="text" name="Uran" id="Uran" />
</label>
<label>Plutonium
<input type="text" name="Plutonium" id="Plutonium" />
</label>
<label>Wasserstoff
<input type="text" name="Wasserstoff" id="Wasserstoff" />
</label></p>
<p>
<label>Credits
<input type="text" name="Credits" id="Credits" />
</label>
<input type="submit" name="Bestellung" id="button" value="Senden"/>
</form>
<?php
include("connect.php");
$user = $_POST["myusername"];
$ti = $_POST["Titan"];
$si = $_POST["Silicium"];
$na = $_POST["Nahrung"];
$he = $_POST["Helium"];
$wa = $_POST["Wasser"];
$ba = $_POST["Bauxit"];
$al = $_POST["Aluminium"];
$ur = $_POST["Uran"];
$pl = $_POST["Plutonium"];
$ws = $_POST["Wasserstoff"];
$cr = $_POST["Credits"];
$eintrag = "INSERT INTO Ress (User, Titan, Silicium, Helium, Nahrung, Wasser, Bauxit, Aluminium, Uran, Plutonium, Wasserstoff, Credits) VALUES ('$user', '$ti','$si', '$he', $na, $wa, $ba, $al, $ur, $pl, $ws, $cr)";
$eintragen = mysql_query($eintrag);
?>
</body>
</html>
|