ERLEDIGT
NEIN
NEIN
ANTWORTEN
72
72
ZUGRIFFE
1566
1566
EMPFEHLEN
-
09.08.05 15:43 #31Deswegen das mit der Logik!
Zitat von Shiro-san
Du bekommst doch auch keinen Elefanten in den Kühlschrank, wenn schon einer drinsitzt!
Wird diese Datei included? Oder was steht über dem Code, den du gepostet hast?Ich bin arbeitlos und suche dringend eine neue Festanstellung!
Kennst du jemanden der einen- PHP-Profi
- Datenbankadministrator
- Webdesigner
- Netzwerkadministrator
- oder ähnliches
Ceraph@gmx.de
Danke, Jörg
-
09.08.05 15:49 #32
- Registriert seit
- Jul 2005
- Ort
- Ibbenbüren (NRW)
- Beiträge
- 109
Na du fragst mich Sachen von denen ich keine Ahnung hab.
Ich erklärs mal so wie ich es verstehe ok?
Das was über dem Code steht ist HTML gemischt mit PHP. Auf der Seite wird das gleiche was auch schon im Formular steht angezeigt, also wird dieses Formular immer und immer wieder angezeigt.
-
09.08.05 15:51 #33
Da darf nix drüber stehen.
Die Datei muss hiermit anfangen:
PHP-Code:<?php
// $_POST beinhaltet alle eingegebenen Werte des abgeschickten Formulars
$text1 = $_POST['id'];
$text2 = $_POST['name'];
$text3 = $_POST['vorname'];
$text4 = $_POST['geburtsdatum'];
$text5 = $_POST['geschlecht'];
$text6 = $_POST['mobil'];
$text7 = $_POST['email'];
// Verbindung zur DB aufbauen
$verbinde=mysql_connect("localhost", "root");
mysql_select_db("messe");
$kontakte=mysql_query("select * from kontakte where id='$id'");
if (mysql_num_rows($kontakte)>0)
{
header("Location:fehler.php");
}Ich bin arbeitlos und suche dringend eine neue Festanstellung!
Kennst du jemanden der einen- PHP-Profi
- Datenbankadministrator
- Webdesigner
- Netzwerkadministrator
- oder ähnliches
Ceraph@gmx.de
Danke, Jörg
-
An dem HTML wird's liegen.
Da dies bereits an den Browser gesendet wird bevor Du header() ausfuehrst bekommst Du Deine Fehlermeldung.
Probier mal das hier ganz oben in dem Script
und das hier ganz untenPHP-Code:<?php
ob_start();
?>
PHP-Code:<?php
ob_end_flush();
?>PHP Class Collection - PHP-Klassen fuer PHP 5 (und Teilweise auch fuer PHP 4)
Updates: Catcher 1.1, FTPConnection 1.2, MultiSQL 1.1, RSS2 1.1, SMTPConnection 1.4
__________________
EasyLFS - Hintergrundinformationen, Installationsanleitung, Softwareliste und Download
EasyLFS Projektthread - Informationen, Status und Diskussion zu meiner Linux-Distribution
__________________
__________________Ich bin die Schildkroete, mein Sohn. Ich habe das Universum erschaffen, aber bitte mach mir daraus keinen Vorwurf; ich hatte Bauchschmerzen.
Zitat von Friedrich Nietzsche
-
09.08.05 15:55 #35
- Registriert seit
- Jul 2005
- Ort
- Ibbenbüren (NRW)
- Beiträge
- 109
ok ich habs jetzt vor das script gesetzt. dann meldet er aber einen fehler in line 235, was diese hier ist:
if (mysql_num_rows($kontakte)>0)
und setzte ich den code vor das HTML Coding bekomm ich nix mehr angezeigt.
-
Wie sieht denn Dein Code jetzt aus?
Diesmal bitte die ganze Datei.PHP Class Collection - PHP-Klassen fuer PHP 5 (und Teilweise auch fuer PHP 4)
Updates: Catcher 1.1, FTPConnection 1.2, MultiSQL 1.1, RSS2 1.1, SMTPConnection 1.4
__________________
EasyLFS - Hintergrundinformationen, Installationsanleitung, Softwareliste und Download
EasyLFS Projektthread - Informationen, Status und Diskussion zu meiner Linux-Distribution
__________________
__________________Ich bin die Schildkroete, mein Sohn. Ich habe das Universum erschaffen, aber bitte mach mir daraus keinen Vorwurf; ich hatte Bauchschmerzen.
Zitat von Friedrich Nietzsche
-
09.08.05 16:03 #37
select * from kontakte where id='$id'
das sollte bei dir wohl so lauten:
select * from kontakte where id='$text1'Ich bin arbeitlos und suche dringend eine neue Festanstellung!
Kennst du jemanden der einen- PHP-Profi
- Datenbankadministrator
- Webdesigner
- Netzwerkadministrator
- oder ähnliches
Ceraph@gmx.de
Danke, Jörg
-
09.08.05 16:07 #38
- Registriert seit
- Jul 2005
- Ort
- Ibbenbüren (NRW)
- Beiträge
- 109
Hab ich schon probiert... willa nicht.Er sagt ihm passt was an der Zeile darunter nicht.
-
09.08.05 16:10 #39
Kannst du nicht endlich mal die ganze Datei hier posten?
Dieses Rumgestocher in deiner Unkenntnis nervt.
Sorry, aber ich glaube wenn du alles hier postest ist dir schneller geholfen, als wenn du Zeile für Zeile verbesserst.Ich bin arbeitlos und suche dringend eine neue Festanstellung!
Kennst du jemanden der einen- PHP-Profi
- Datenbankadministrator
- Webdesigner
- Netzwerkadministrator
- oder ähnliches
Ceraph@gmx.de
Danke, Jörg
-
09.08.05 16:12 #40
- Registriert seit
- Jul 2005
- Ort
- Ibbenbüren (NRW)
- Beiträge
- 109
Ok vorsicht: LANG
Code :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 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>ATARI CLUB</title> <style type="text/css"> <!-- p {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#FF0000;} table {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#FF0000;} form { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#FF0000; border-color:#FF0000; border-width: 1px; padding: 2px; } .Stil2 { font-size: 30px; font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #EF2F3E;} </style> <script type="text/javascript"> function click (e) { if (!e) e = window.event; if ((e.type && e.type == "contextmenu") || (e.button && e.button == 2) || (e.which && e.which == 3)) { if (window.opera) window.alert("Sorry: Diese Funktion ist deaktiviert."); return false; } } if (document.layers) document.captureEvents(Event.MOUSEDOWN); document.onmousedown = click; document.oncontextmenu = click; </script> </head> <body bgcolor="#FFFFFF" text="#FF0000" scroll="no"> <div style="position: absolute; top: 0px; left: 20px; width:890px; height:500"> <form action="script.php" method="post" name="form1"> <table border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="middle" nowrap> <center> <embed src="atari.avi" width="844" height="282" autostart="true" loop="true" showcontrols="false" /></p> </center> </td> </tr> <tr> <td align="center" valign="middle" nowrap> </td> </tr> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <table border="0" align="left" cellpadding="0" cellspacing="0"> <tr> <td><span class="Stil2">id</span></td> </tr> <tr> <td> <table border="0" align="left" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E"> <tr> <td valign="middle"> <table height="75" border="0" align="center" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF"> <tr> <td align="left" valign="middle"><input name="id" type="text" style="font-family: Verdana; font-size: 24pt; color: #EF2F3E; border: 0px solid #EF2F3E" tabindex="1" value="" size="3" height="30"></td> </tr> </table> </td> </tr> </table> </td> <td align="left" valign="middle"><img src="spacer.gif" width="25" height="1" hspace="0" vspace="0" border="0"></td> </tr> <tr> <td align="center" valign="middle"><img src="spacer.gif" width="1" height="30" hspace="0" vspace="0" border="0"></td> <td align="left" valign="middle"><img src="spacer.gif" width="25" height="1" hspace="0" vspace="0" border="0"></td> </tr> <tr> <td><span class="Stil2">m-f</span></td> </tr> <tr> <td> <table border="0" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E"> <tr> <td> <table height="75" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF"> <tr> <td align="left" valign="middle"><input name="geschlecht" type="text" style="font-family: Verdana; font-size: 24pt; color: #EF2F3E; border: 0px solid #EF2F3E" tabindex="5" value="" size="3" height="30"></td> </tr> </table> </td> </tr> </table> </td> <td align="left" valign="middle"><img src="spacer.gif" width="25" height="1" hspace="0" vspace="0" border="0"></td> </tr> </table></td> <td align="left" valign="top"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><span class="Stil2">name</span></td> </tr> <tr> <td> <table border="0" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E"> <tr> <td> <table height="75" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF"> <tr> <td align="left" valign="middle"><input name="name" type=text style="font-family: Verdana; color: #EF2F3E; font-size: 24pt; border: 0px solid #EF2F3E" tabindex="2" size="10" height="30"> </td> </tr> </table> </td> </tr> </table> </td> <td align="left" valign="middle"><img src="spacer.gif" width="25" height="1" hspace="0" vspace="0" border="0"></td> </tr> <tr> <td align="center" valign="middle"><img src="spacer.gif" width="1" height="30" hspace="0" vspace="0" border="0"></td> <td align="left" valign="middle"><img src="spacer.gif" width="25" height="1" hspace="0" vspace="0" border="0"></td> </tr> <tr> <td><span class="Stil2">mobil</span></td> </tr> <tr> <td> <table border="0" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E"> <tr> <td> <table height="75" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF"> <tr> <td align="left" valign="middle"><input name="mobil" type=text style="font-family: Verdana; color: #EF2F3E; font-size: 24pt; border: 0px solid #EF2F3E" tabindex="6" size="10" height="30"></td> </tr> </table> </td> </tr> </table> </td> <td align="left" valign="middle"><img src="spacer.gif" width="25" height="1" hspace="0" vspace="0" border="0"></td> </tr> </table></td> <td align="left" valign="top"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><span class="Stil2">surname</span></td> <td align="left" valign="middle"><img src="spacer.gif" width="25" height="8" hspace="0" vspace="0" border="0"></td> <td><span class="Stil2">birthday</span></td> </tr> <tr> <td> <table border="0" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E"> <tr> <td> <table height="75" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF"> <tr> <td align="left" valign="middle"><input name="vorname" type="text" style="font-family: Verdana; font-size: 24pt; color: #EF2F3E; border: 0px solid #EF2F3E" tabindex="3" value="" size="13" height="30"> </td> </tr> </table> </td> </tr> </table> </td> <td align="left" valign="middle"><img src="spacer.gif" width="25" height="8" hspace="0" vspace="0" border="0"></td> <td> <table border="0" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E"> <tr> <td> <table height="75" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF"> <tr> <td align="left" valign="middle"><input name="geburtsdatum" type=text style="font-family: Verdana; color: #EF2F3E; font-size: 24pt; border: 0px solid #EF2F3E" tabindex="4" size="10" height="30"4> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr align="center"> <td colspan="3" valign="middle"><img src="spacer.gif" width="1" height="30" hspace="0" vspace="0" border="0"></td> </tr> <tr> <td colspan="3"><span class="Stil2">e-mail</span></td> </tr> <tr> <td colspan="3"> <table border="0" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E"> <tr> <td> <table height="75" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF"> <tr> <td align="left" valign="middle"><input name="email" type=text style="font-family: Verdana; color: #EF2F3E; font-size: 24pt; border: 0px solid #EF2F3E" tabindex="7" size="28" height="30"></td> </tr> </table> </td> </tr> </table> </td> </tr> </table></td> </tr> </table> </td> </tr> </table> <p> <div align="center"> <input src="atari_button_final.jpg" class="submit" border="0" height="84" type="image" width="212"> </div> </form> </div> <p> </p> <?php ob_start(); ?> <?php $kontakte=mysql_query("select * from kontakte where id='$text1'"); if (mysql_num_rows($kontakte)>0) { header("Location:fehler.php"); } // $_POST beinhaltet alle eingegebenen Werte des abgeschickten Formulars $text1 = $_POST['id']; $text2 = $_POST['name']; $text3 = $_POST['vorname']; $text4 = $_POST['geburtsdatum']; $text5 = $_POST['geschlecht']; $text6 = $_POST['mobil']; $text7 = $_POST['email']; // Verbindung zur DB aufbauen $verbinde=mysql_connect("localhost", "root"); mysql_select_db("messe"); // Query an DB schicken mysql_query("INSERT INTO kontakte (id, name, vorname, geburtsdatum, geschlecht, mobil, email, bild) VALUES('$text1','$text2','$text3','$text4','$text5','$text6','$text7','$text1')") or die(mysql_error()); ?> <?php ob_end_flush(); ?>
</body>
</html>
-
Du hattest ob_start() und ob_end_flush() nicht an die richtigen Stellen gesetzt.
Wie gesagt, ganz am Anfang und ganz am Ende.
Ausserdem hast Du die ID vor Aufbau der Verbindung zur DB ueberpruefen wollen.
PHP-Code:<?php
ob_start();
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ATARI CLUB</title>
<style type="text/css">
<!--
p {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#FF0000;}
table {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#FF0000;}
form {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
color:#FF0000;
border-color:#FF0000;
border-width: 1px;
padding: 2px;
}
.Stil2 {
font-size: 30px;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
color: #EF2F3E;}
</style>
<script type="text/javascript">
function click (e) {
if (!e)
e = window.event;
if ((e.type && e.type == "contextmenu") || (e.button && e.button == 2) || (e.which && e.which == 3)) {
if (window.opera)
window.alert("Sorry: Diese Funktion ist deaktiviert.");
return false;
}
}
if (document.layers)
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = click;
document.oncontextmenu = click;
</script>
</head>
<body bgcolor="#FFFFFF" text="#FF0000" scroll="no">
<div style="position: absolute; top: 0px; left: 20px; width:890px; height:500">
<form action="script.php" method="post" name="form1">
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" nowrap>
<center>
<embed src="atari.avi" width="844" height="282" autostart="true" loop="true" showcontrols="false" /></p>
</center>
</td>
</tr>
<tr>
<td align="center" valign="middle" nowrap> </td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td><span class="Stil2">id</span></td>
</tr>
<tr>
<td>
<table border="0" align="left" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E">
<tr>
<td valign="middle">
<table height="75" border="0" align="center" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF">
<tr>
<td align="left" valign="middle"><input name="id" type="text" style="font-family: Verdana; font-size: 24pt; color: #EF2F3E; border: 0px solid #EF2F3E" tabindex="1" value="" size="3" height="30"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td align="left" valign="middle"><img src="spacer.gif" width="25" height="1" hspace="0" vspace="0" border="0"></td>
</tr>
<tr>
<td align="center" valign="middle"><img src="spacer.gif" width="1" height="30" hspace="0" vspace="0" border="0"></td>
<td align="left" valign="middle"><img src="spacer.gif" width="25" height="1" hspace="0" vspace="0" border="0"></td>
</tr>
<tr>
<td><span class="Stil2">m-f</span></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E">
<tr>
<td>
<table height="75" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF">
<tr>
<td align="left" valign="middle"><input name="geschlecht" type="text" style="font-family: Verdana; font-size: 24pt; color: #EF2F3E; border: 0px solid #EF2F3E" tabindex="5" value="" size="3" height="30"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td align="left" valign="middle"><img src="spacer.gif" width="25" height="1" hspace="0" vspace="0" border="0"></td>
</tr>
</table></td>
<td align="left" valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span class="Stil2">name</span></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E">
<tr>
<td>
<table height="75" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF">
<tr>
<td align="left" valign="middle"><input name="name" type=text style="font-family: Verdana; color: #EF2F3E; font-size: 24pt; border: 0px solid #EF2F3E" tabindex="2" size="10" height="30"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td align="left" valign="middle"><img src="spacer.gif" width="25" height="1" hspace="0" vspace="0" border="0"></td>
</tr>
<tr>
<td align="center" valign="middle"><img src="spacer.gif" width="1" height="30" hspace="0" vspace="0" border="0"></td>
<td align="left" valign="middle"><img src="spacer.gif" width="25" height="1" hspace="0" vspace="0" border="0"></td>
</tr>
<tr>
<td><span class="Stil2">mobil</span></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E">
<tr>
<td>
<table height="75" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF">
<tr>
<td align="left" valign="middle"><input name="mobil" type=text style="font-family: Verdana; color: #EF2F3E; font-size: 24pt; border: 0px solid #EF2F3E" tabindex="6" size="10" height="30"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td align="left" valign="middle"><img src="spacer.gif" width="25" height="1" hspace="0" vspace="0" border="0"></td>
</tr>
</table></td>
<td align="left" valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span class="Stil2">surname</span></td>
<td align="left" valign="middle"><img src="spacer.gif" width="25" height="8" hspace="0" vspace="0" border="0"></td>
<td><span class="Stil2">birthday</span></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E">
<tr>
<td>
<table height="75" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF">
<tr>
<td align="left" valign="middle"><input name="vorname" type="text" style="font-family: Verdana; font-size: 24pt; color: #EF2F3E; border: 0px solid #EF2F3E" tabindex="3" value="" size="13" height="30"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td align="left" valign="middle"><img src="spacer.gif" width="25" height="8" hspace="0" vspace="0" border="0"></td>
<td>
<table border="0" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E">
<tr>
<td>
<table height="75" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF">
<tr>
<td align="left" valign="middle"><input name="geburtsdatum" type=text style="font-family: Verdana; color: #EF2F3E; font-size: 24pt; border: 0px solid #EF2F3E" tabindex="4" size="10" height="30"4> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr align="center">
<td colspan="3" valign="middle"><img src="spacer.gif" width="1" height="30" hspace="0" vspace="0" border="0"></td>
</tr>
<tr>
<td colspan="3"><span class="Stil2">e-mail</span></td>
</tr>
<tr>
<td colspan="3">
<table border="0" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E">
<tr>
<td>
<table height="75" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF">
<tr>
<td align="left" valign="middle"><input name="email" type=text style="font-family: Verdana; color: #EF2F3E; font-size: 24pt; border: 0px solid #EF2F3E" tabindex="7" size="28" height="30"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
<p>
<div align="center">
<input src="atari_button_final.jpg" class="submit" border="0" height="84" type="image" width="212">
</div>
</form>
</div>
<p> </p>
<?php
// $_POST beinhaltet alle eingegebenen Werte des abgeschickten Formulars
$text1 = $_POST['id'];
$text2 = $_POST['name'];
$text3 = $_POST['vorname'];
$text4 = $_POST['geburtsdatum'];
$text5 = $_POST['geschlecht'];
$text6 = $_POST['mobil'];
$text7 = $_POST['email'];
// Verbindung zur DB aufbauen
$verbinde=mysql_connect("localhost", "root");
mysql_select_db("messe");
$kontakte=mysql_query("select * from kontakte where id='$text1'");
if (mysql_num_rows($kontakte)>0)
{
header("Location:fehler.php");
}
// Query an DB schicken
mysql_query("INSERT INTO kontakte (id, name, vorname, geburtsdatum, geschlecht, mobil, email, bild) VALUES('$text1','$text2','$text3','$text4','$text5','$text6','$text7','$text1')") or die(mysql_error());
?>
</body>
</html>
<?php
ob_end_flush();
?>PHP Class Collection - PHP-Klassen fuer PHP 5 (und Teilweise auch fuer PHP 4)
Updates: Catcher 1.1, FTPConnection 1.2, MultiSQL 1.1, RSS2 1.1, SMTPConnection 1.4
__________________
EasyLFS - Hintergrundinformationen, Installationsanleitung, Softwareliste und Download
EasyLFS Projektthread - Informationen, Status und Diskussion zu meiner Linux-Distribution
__________________
__________________Ich bin die Schildkroete, mein Sohn. Ich habe das Universum erschaffen, aber bitte mach mir daraus keinen Vorwurf; ich hatte Bauchschmerzen.
Zitat von Friedrich Nietzsche
-
09.08.05 16:16 #42
- Registriert seit
- Jul 2005
- Ort
- Ibbenbüren (NRW)
- Beiträge
- 109
So und nun fahr ich erst mal nach Hause von wo das Gewusel dann weiter geht...
Um 17:30 bin ich dann zu Hause... Toll... >_>;
-
Hmm, wenn Du daheim ankommst werd ich mir wahrscheinlich ueberlegen ob ich nicht mal langsam in's Bett geh.
Aber Du kannst ja dann mal den Code den ich grad gepostet hab probieren und dann posten ob's geht.
Entweder bin ich dann noch da oder guck morgen mal wieder rein.
Und Joerg ist ja auch noch da.PHP Class Collection - PHP-Klassen fuer PHP 5 (und Teilweise auch fuer PHP 4)
Updates: Catcher 1.1, FTPConnection 1.2, MultiSQL 1.1, RSS2 1.1, SMTPConnection 1.4
__________________
EasyLFS - Hintergrundinformationen, Installationsanleitung, Softwareliste und Download
EasyLFS Projektthread - Informationen, Status und Diskussion zu meiner Linux-Distribution
__________________
__________________Ich bin die Schildkroete, mein Sohn. Ich habe das Universum erschaffen, aber bitte mach mir daraus keinen Vorwurf; ich hatte Bauchschmerzen.
Zitat von Friedrich Nietzsche
-
09.08.05 16:19 #44
Ich wusste, das du es nicht verstehst.

PHP-Code:<?php
// $_POST beinhaltet alle eingegebenen Werte des abgeschickten Formulars
if(isset$_POST['id']) {
$text1 = $_POST['id'];
$text2 = $_POST['name'];
$text3 = $_POST['vorname'];
$text4 = $_POST['geburtsdatum'];
$text5 = $_POST['geschlecht'];
$text6 = $_POST['mobil'];
$text7 = $_POST['email'];
// Verbindung zur DB aufbauen
$verbinde=mysql_connect("localhost", "root");
mysql_select_db("messe");
$kontakte=mysql_query("select * from kontakte where id='$text1'");
if (mysql_num_rows($kontakte)>0)
{
header("Location:fehler.php");
}
// Query an DB schicken
mysql_query("INSERT INTO kontakte (id, name, vorname, geburtsdatum, geschlecht, mobil, email, bild) VALUES('$text1','$text2','$text3','$text4','$text5','$text6','$text7','$text1')") or die(mysql_error());
} else {
echo('Keine ID bekannt');
}
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ATARI CLUB</title>
<style type="text/css">
<!--
p {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#FF0000;}
table {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#FF0000;}
form {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
color:#FF0000;
border-color:#FF0000;
border-width: 1px;
padding: 2px;
}
.Stil2 {
font-size: 30px;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
color: #EF2F3E;}
</style>
<script type="text/javascript">
function click (e) {
if (!e)
e = window.event;
if ((e.type && e.type == "contextmenu") || (e.button && e.button == 2) || (e.which && e.which == 3)) {
if (window.opera)
window.alert("Sorry: Diese Funktion ist deaktiviert.");
return false;
}
}
if (document.layers)
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = click;
document.oncontextmenu = click;
</script>
</head>
<body bgcolor="#FFFFFF" text="#FF0000" scroll="no">
<div style="position: absolute; top: 0px; left: 20px; width:890px; height:500">
<form action="script.php" method="post" name="form1">
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" nowrap>
<center>
<embed src="atari.avi" width="844" height="282" autostart="true" loop="true" showcontrols="false" /></p>
</center>
</td>
</tr>
<tr>
<td align="center" valign="middle" nowrap> </td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td><span class="Stil2">id</span></td>
</tr>
<tr>
<td>
<table border="0" align="left" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E">
<tr>
<td valign="middle">
<table height="75" border="0" align="center" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF">
<tr>
<td align="left" valign="middle"><input name="id" type="text" style="font-family: Verdana; font-size: 24pt; color: #EF2F3E; border: 0px solid #EF2F3E" tabindex="1" value="" size="3" height="30"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td align="left" valign="middle"><img src="spacer.gif" width="25" height="1" hspace="0" vspace="0" border="0"></td>
</tr>
<tr>
<td align="center" valign="middle"><img src="spacer.gif" width="1" height="30" hspace="0" vspace="0" border="0"></td>
<td align="left" valign="middle"><img src="spacer.gif" width="25" height="1" hspace="0" vspace="0" border="0"></td>
</tr>
<tr>
<td><span class="Stil2">m-f</span></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E">
<tr>
<td>
<table height="75" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF">
<tr>
<td align="left" valign="middle"><input name="geschlecht" type="text" style="font-family: Verdana; font-size: 24pt; color: #EF2F3E; border: 0px solid #EF2F3E" tabindex="5" value="" size="3" height="30"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td align="left" valign="middle"><img src="spacer.gif" width="25" height="1" hspace="0" vspace="0" border="0"></td>
</tr>
</table></td>
<td align="left" valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span class="Stil2">name</span></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E">
<tr>
<td>
<table height="75" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF">
<tr>
<td align="left" valign="middle"><input name="name" type=text style="font-family: Verdana; color: #EF2F3E; font-size: 24pt; border: 0px solid #EF2F3E" tabindex="2" size="10" height="30"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td align="left" valign="middle"><img src="spacer.gif" width="25" height="1" hspace="0" vspace="0" border="0"></td>
</tr>
<tr>
<td align="center" valign="middle"><img src="spacer.gif" width="1" height="30" hspace="0" vspace="0" border="0"></td>
<td align="left" valign="middle"><img src="spacer.gif" width="25" height="1" hspace="0" vspace="0" border="0"></td>
</tr>
<tr>
<td><span class="Stil2">mobil</span></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E">
<tr>
<td>
<table height="75" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF">
<tr>
<td align="left" valign="middle"><input name="mobil" type=text style="font-family: Verdana; color: #EF2F3E; font-size: 24pt; border: 0px solid #EF2F3E" tabindex="6" size="10" height="30"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td align="left" valign="middle"><img src="spacer.gif" width="25" height="1" hspace="0" vspace="0" border="0"></td>
</tr>
</table></td>
<td align="left" valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span class="Stil2">surname</span></td>
<td align="left" valign="middle"><img src="spacer.gif" width="25" height="8" hspace="0" vspace="0" border="0"></td>
<td><span class="Stil2">birthday</span></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E">
<tr>
<td>
<table height="75" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF">
<tr>
<td align="left" valign="middle"><input name="vorname" type="text" style="font-family: Verdana; font-size: 24pt; color: #EF2F3E; border: 0px solid #EF2F3E" tabindex="3" value="" size="13" height="30"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td align="left" valign="middle"><img src="spacer.gif" width="25" height="8" hspace="0" vspace="0" border="0"></td>
<td>
<table border="0" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E">
<tr>
<td>
<table height="75" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF">
<tr>
<td align="left" valign="middle"><input name="geburtsdatum" type=text style="font-family: Verdana; color: #EF2F3E; font-size: 24pt; border: 0px solid #EF2F3E" tabindex="4" size="10" height="30"4> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr align="center">
<td colspan="3" valign="middle"><img src="spacer.gif" width="1" height="30" hspace="0" vspace="0" border="0"></td>
</tr>
<tr>
<td colspan="3"><span class="Stil2">e-mail</span></td>
</tr>
<tr>
<td colspan="3">
<table border="0" cellpadding="0" cellspacing="5" bgcolor="#EF2F3E">
<tr>
<td>
<table height="75" border="0" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF">
<tr>
<td align="left" valign="middle"><input name="email" type=text style="font-family: Verdana; color: #EF2F3E; font-size: 24pt; border: 0px solid #EF2F3E" tabindex="7" size="28" height="30"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
<p>
<div align="center">
<input src="atari_button_final.jpg" class="submit" border="0" height="84" type="image" width="212">
</div>
</form>
</div>
<p> </p>Ich bin arbeitlos und suche dringend eine neue Festanstellung!
Kennst du jemanden der einen- PHP-Profi
- Datenbankadministrator
- Webdesigner
- Netzwerkadministrator
- oder ähnliches
Ceraph@gmx.de
Danke, Jörg
-
09.08.05 16:19 #45
- Registriert seit
- Jul 2005
- Ort
- Ibbenbüren (NRW)
- Beiträge
- 109
Ja du wohnst z.Z in Hong Kong richtig? 6 Stunden Zeitverschiebung oder nicht?
Und ich sitz in Deutschland... super... Ja und ich werd mal nachgucken... Und was meinst du mit ganz oben und unten? bevor die HTML zuende geh oder wie?
.... Ich überprüfs einfach...
Ähnliche Themen
-
Eigene Fehlerseite
Von fawad im Forum PHPAntworten: 10Letzter Beitrag: 28.10.07, 18:53 -
JSF - Fehlerseite
Von y0dA im Forum JavaAntworten: 0Letzter Beitrag: 26.06.07, 13:35 -
404 Fehlerseite funktioniert nicht
Von tim-pong im Forum Hosting & WebserverAntworten: 6Letzter Beitrag: 16.11.05, 00:48 -
CGI Fehlerseite
Von Byter im Forum CGI, Perl, Python, Ruby, Power ShellAntworten: 1Letzter Beitrag: 14.01.05, 17:16 -
eigene Fehlerseite bei totem Link
Von Kettu im Forum PHPAntworten: 5Letzter Beitrag: 20.11.03, 18:05





Zitieren
Login






[PHP] [Codeschnipsel] ImageColor aus HTML-Farbcodierung erstellen