[PHP] afficher apres le slash ?

Résolu
Bonjour,
voici mon code :

<html>
<head>
</head>
<body>
<?php
if(isset($_POST['envoi']))
{
echo "l'image est ".$_POST['image'];
//rewind($_POST['image');
}
?>

<form method="post" name="image_envoi">
<input type="file" name="image" size=50>
<br><br>
<input name="envoi" type="submit" value="Envoyer les fichiers">
</form>

</body>
</html>

il m'affiche :

l'image est C:\Documents and Settings\Administrateur\Bureau\image1.jpg

je veux qu'il m'afffiche seulement:

l'image est image1.jpg

et merci.
Configuration: Windows XP
Internet Explorer 6.0

2 réponses

  1. ah oui
    merci beaucoup Nxt
    1. ah non, dsl
      ça marche pas le truc,
      la il m'affiche :

      l'image est C
    2. @baltazar852000enfin, j'ai trouvé:

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

      <?php
      if(isset($_POST['envoi']))
      {
      echo substr(strrchr($_POST['image'], "\\"), 1);
      }
      ?>

      <form method="post" name="image_envoi">
      <input type="file" name="image" size=50><br><br>
      <input name="envoi" type="submit" value="Envoyer les fichiers">
      </form>

      </body>
      </html>