link and passing variable
Posted: Wed Jul 13, 2005 4:49 am
Hi,
I have a php page and I reload the page when a button is clicked. I also send a few variables.
this is my code :
<a href="slideShow.php?dossier=<?PHP echo $dossier.'&categorie='.$categorie.'&photo='.$photo-1;?>"
and I get the variables with :
<?PHP
$dossier = $HTTP_GET_VARS["dossier"];
$categorie = $HTTP_GET_VARS["categorie"];
$photo = $HTTP_GET_VARS["photo"];
?>
And that doesn't work. The $dossier variable seems to be sent, but the two others don't, I have the errors :
Notice: Undefined index: categorie in c:\program files\easyphp1-8\www\slideshow\slideshow.php
Notice: Undefined index: photo in c:\program files\easyphp1-8\www\slideshow\slideshow.php
Thanks a lot
Toutouffe
I have a php page and I reload the page when a button is clicked. I also send a few variables.
this is my code :
<a href="slideShow.php?dossier=<?PHP echo $dossier.'&categorie='.$categorie.'&photo='.$photo-1;?>"
and I get the variables with :
<?PHP
$dossier = $HTTP_GET_VARS["dossier"];
$categorie = $HTTP_GET_VARS["categorie"];
$photo = $HTTP_GET_VARS["photo"];
?>
And that doesn't work. The $dossier variable seems to be sent, but the two others don't, I have the errors :
Notice: Undefined index: categorie in c:\program files\easyphp1-8\www\slideshow\slideshow.php
Notice: Undefined index: photo in c:\program files\easyphp1-8\www\slideshow\slideshow.php
Thanks a lot
Toutouffe