Warnung: file_put_contents(/home/www/web1/html/php_dev/test.txt) [function.file-put-contents]: failed to open stream: Permission denied in /home/www/web1/html/php_dev/sys/lib.activity.php (Zeile 58)
Ein kleines Problem!!! [Archiv] - PHP-Scripte PHP-Tutorials PHP-Jobs und vieles mehr

- Ad -
php-resource




Archiv verlassen und diese Seite im Standarddesign anzeigen :
Ein kleines Problem!!!


 
BenBay
09-04-2003, 21:35 
 
Hallo,
also ich gebe eine Variable Weiter das sieht so aus:

http://localhost/webworker/admin/artikel/artikel_bearbeiten.php?id=10

Wenn ich aber jetzt den Quelltext vom Formular anschaue dann steht da nicht 10 sondern 1:

<html>
<head>
</head>
<body bgcolor="#99ccff">
<form method=post action="artikel.php?id=1">
<table>
<td valign=top>
Beschreibung:
</td>
<td>
<textarea name="text" cols=35 rows=8>Und das ist wieder einmal ein test!!!!</textarea>
<input type="hidden" name="action" value="update">
<input type="submit" value="Link Ändern">
</td>
</tr>
</table>
</form>
<center><a href="../index.php">zurück</a></center>
</body>
</html>

Das bearbeiten klappt mit allen ID Nummern unter 10. Was kann man da machen oder was mache ich Falsch?

 
Abraxax
09-04-2003, 21:40 
 
wie sieht denn der php-code aus, der das erzeugt?

 
mrhappiness
09-04-2003, 21:41 
 
wie erzeugts du denn dasaction="artikel.php?id=1">?

 
BenBay
09-04-2003, 21:46 
 
Oh, Sorry!!! Leichtsinnsfehler!!
Code Vorher:

<html>
<head>
</head>
<body bgcolor="#99ccff">
<form method=post action="artikel.php?id=<? echo $id['id'] ?>">
<table>
<td valign=top>
Beschreibung:
</td>
<td>
<textarea name="text" cols=35 rows=8><? echo $link['text'] ?></textarea>
<input type="hidden" name="action" value="update">
<input type="submit" value="Link Ändern">
</td>
</tr>
</table>
</form>
<center><a href="../index.php">zurück</a></center>
</body>
</html>

Code Nachher:

<html>
<head>
</head>
<body bgcolor="#99ccff">
<form method=post action="artikel.php?id=<? echo $id ?>">
<table>
<td valign=top>
Beschreibung:
</td>
<td>
<textarea name="text" cols=35 rows=8><? echo $link['text'] ?></textarea>
<input type="hidden" name="action" value="update">
<input type="submit" value="Link Ändern">
</td>
</tr>
</table>
</form>
<center><a href="../index.php">zurück</a></center>
</body>
</html>

Also, nochmals entschuldigung das ich Euch belästigt habe!!! :rolleyes:

 
Abraxax
09-04-2003, 21:49 
 
was soll das denn sein?

<? echo $id['id'] ?>

mache mal

<?php echo $_GET["id"]; ?>

oder

<?php echo $HTTP_GET_VARS["id"]; ?>

 
BenBay
09-04-2003, 21:50 
 
Wieso? Geht doch auch so wie ich es gemacht habe. Oder Wie? :confused:
Das war ja eh Falsch:

<? echo $id['id'] ?>

Denn so wars richtig:

<? echo $id ?>

 
Abraxax
09-04-2003, 21:51 
 
das erkläre mir, was hier drin steht: $id['id']

 
BenBay
09-04-2003, 21:53 
 
Siehe eins oben! Bin halt noch Anfänger!!!!

 
Abraxax
09-04-2003, 21:55 
 
und hast du jetzt auch schon mal die anderen ausprobiert????

 
BenBay
09-04-2003, 21:57 
 
Jetzt geht alles!!! Neuen Artikel erstellen, bearbeiten, erweitern und löschen!!!

 
Abraxax
09-04-2003, 21:59 
 
warum nicht gleich so?

 
BenBay
09-04-2003, 22:07 
 
Tja, weil ich eben noch Anfänger bin und ich jeden Tag etwas neues dazu lerne in PHP!!!! :D
Danke für Eure Hilfe!!!

 
Abraxax
09-04-2003, 22:12 
 
und deshalb poste ich schon und testest das nicht mal!!! das meinte ich.

aber jetzt geht.

 
BenBay
09-04-2003, 22:20 
 
Ja, ich weiß. War mal wieder zu voreilig. Wird nicht mehr vorkommen!!! ;)

 
Abraxax
09-04-2003, 22:22 
 
soll dir nur eine lehre sein.... ;)

immer erst die vorschläge testen, bevor du fragst...


Alle Zeitangaben in WEZ +2. Es ist jetzt 16:18 Uhr.