| | | | |
| | |
| Gast
Beiträge: n/a
| Nabend, habe folgendes Problem und zwar hab ich nen Script, welches Daten aus nem Formular in eine Db eintragen soll. Code: <!-insert.php->
<html>
<body>
<?PHP
if ($button==" OK ") {
include ("db_login.php");
mysql_query("INSERT INTO cds(titel,interpret)VALUE('$titel','$interpret')");
mysql_close();
?>
Die Daten wurden eingetragen
neuer Eintrag
zur Übersicht
<?
}
else {
?>
<form method="post" action="insert.php">
<input type="text" name="interpret" value="interpret">
<input type="text" name="titel" value="titel">
<input type="submit" name="button" value=" OK ">
</form>
<?
}
?>
</body>
</html>
Würde mich über Hilfe sehr freuen. MFG |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [Erledigt] Galerie Problem... | coraplanet | PHP Tipps 2008 | 4 | 06.06.2008 13:42 |
| Post zum Host nach discconect... | PHP-Fortgeschrittene | 4 | 01.12.2005 17:47 | |
| xampp->apache problem mit skydsl proxy | djrace | Server, Hosting und Workstations | 0 | 25.09.2005 16:14 |
| post problem | PHP Tipps 2005-2 | 21 | 08.09.2005 21:44 | |
| MySQL, PHP und ein großes Problem! | Datenbanken | 2 | 27.08.2005 10:51 | |
| wiedermal ein kleines problem mit der post methode | Tic Rederon | PHP Tipps 2005-2 | 4 | 23.08.2005 08:59 |
| [Erledigt] PHP Problem (GET und POST variabeln) | PHP-Fortgeschrittene | 1 | 16.08.2005 17:39 | |
| [Erledigt] Problem mit Backslash | Patrick Schwarz | PHP Tipps 2005-2 | 5 | 26.07.2005 09:54 |
| POST Problem: Übergabe von Formulardaten | Asipak | PHP Tipps 2005-2 | 19 | 19.07.2005 11:12 |
| [Erledigt] Problem mit User/Group: nobody(99)/99 | Server, Hosting und Workstations | 3 | 09.07.2005 15:31 | |
| [Erledigt] Problem: The requested method POST is not allowed for the | Server, Hosting und Workstations | 17 | 31.05.2005 15:15 | |
| [Erledigt] PHP Upload (Master Value/Local Value Problem) | PHP-Fortgeschrittene | 5 | 23.11.2004 07:21 | |
| Problem mit post und get? | PHP Tipps 2004 | 2 | 21.08.2004 14:39 | |
| Problem mit alter JavaScript-Funktion | woods | PHP Tipps 2004 | 1 | 13.08.2004 13:34 |
| Problem mit Post und PHP-4.3.8 | PHP Tipps 2004 | 7 | 20.07.2004 20:37 | |

Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.