WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   $_PSOT frage.. (http://www.wcm.at/forum/showthread.php?t=95931)

AlexanderFX 04.05.2003 15:10

$_GET frage..
 
ups überschrift falsch ...

i will von seite index.php in seite bildausgabe.php variablen senden..

für ein img-script

PHP-Code:

<html>
<
head>
</
head>
<
body>


[
url="bildausgabe.php?pic=c4d"]bild1[/url] </p>


[
url="bildausgabe.php?pic=or"]bild2[/url] </p>


[
url="bildausgabe.php?pic=ad"]bild3[/url] </p>
</
body>
</
html


nun will ich die mittels $_GET aus der url bekommen:

PHP-Code:

<?php
$pic 
$_GET['pic'];

echo 
"$pic";
?>

erstmal will ich nur die varaiable ausgeben ... doch ich bekomm die variable einfach ned runter... er kann ienfach keinen wert zuweisen..

i amch das erste mal was mit $_POST und bitte um eure hilfe
wo liegt mien fehler

PS: wie kann i ein bild im php ausgeben

Who-T 04.05.2003 17:06

falls du ne ältere php-version, kann es sein dass es $_GET noch nicht gibt.
probier einfach nur "echo $pic;" auf deiner zweiten seite ob dann etwas kommt.

AlexanderFX 04.05.2003 18:13

jo ... hab scho was wies funktioniert

ab welcher version geht $_GET od. $_POST

Who-T 04.05.2003 18:17

ab 4.1.0 gibts das ganze, ab 4.2.0 sollts standardmäßig aktiviert sein


Alle Zeitangaben in WEZ +2. Es ist jetzt 06:02 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag