Visualizzazione dei risultati da 1 a 4 su 4
  1. #1
    Utente di HTML.it
    Registrato dal
    Jul 2005
    Messaggi
    909

    ritornare alla pagina da cui provengo

    Salve,
    qualcuno saprebbe dirmi in php come posso fare per creare un collegamento ipertestuale alla pagina da cui si proviene?

    grazie

  2. #2
    echo "<a href=\"".$_SERVER[HTTP_REFERER]."\">indietro</a>";


  3. #3
    Utente di HTML.it
    Registrato dal
    Jul 2005
    Messaggi
    909
    come non detto, mi sfuggiva:

    $_SERVER[HTTP_REFERER];

  4. #4
    'HTTP_REFERER'
    The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.
    In altre parole se puoi farne a meno non usarla, specialmente se devi usarla per fare un link.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.