Sander wrote:
[f'up -> nl.internet.www.server-side]
> MAAR.... bij test1.php
> <?
> echo "hallo mijn naam is $naam";
> ?>
>
> als ik nu
> http://localhost/test1.php?naam=mitchell
>
> intype
> zou mijn naam ingevuld moeten worden...toch?
>
> Weet iemand wat het probleem is?
Ja. Je moet superglobals gebruiken, dus in dit geval:
<?php
echo "hallo mijn naam is ".$_GET["naam"]."";
?>
... omdat het een GET-var betreft. Leer jezelf trouwens af variabelen
tussen quotes te gebruiken.
Succes.
--
Cheers, Maarten Wierda
cp: Julie Ruin - Aerobicide
"Smack it! Beat it! Masturbate it!" - K.D. Cobain

Likes:

Quote
