Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1979 connectés 

  FORUM HardWare.fr
  Programmation
  PHP

  Faire un "précédente" sans javascript

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Faire un "précédente" sans javascript

n°1336973
_Roland_
Posté le 01-04-2006 à 14:46:46  profilanswer
 

Salut,
 
Voilà je cherche un moyen de mettre un lien hypertexte équivalent à "page précédente", ou équivalent à la fonction javascript Javascript:history.go(-1).
Il y a t-il un moyen simple ?

mood
Publicité
Posté le 01-04-2006 à 14:46:46  profilanswer
 

n°1336974
masklinn
í dag viðrar vel til loftárása
Posté le 01-04-2006 à 14:49:12  profilanswer
 

Récupère le referer et crée un lien dessus


Message édité par masklinn le 01-04-2006 à 14:49:55

---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1337005
anthomicro
Posté le 01-04-2006 à 15:58:01  profilanswer
 

Salut,
 
<?php
header('location:'.$_SERVER['HTTP_REFERER']);
?>
 
ça peut ne pas être efficace car cette variable peut être modifiée...
 
a +

n°1337011
masklinn
í dag viðrar vel til loftárása
Posté le 01-04-2006 à 16:10:29  profilanswer
 

anthomicro a écrit :

Salut,
 
<?php
header('location:'.$_SERVER['HTTP_REFERER']);
?>
 
ça peut ne pas être efficace car cette variable peut être modifiée...
 
a +


Bravo, c'est pas ce qu'il a demandé [:jar jar]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1337026
mandalor
Posté le 01-04-2006 à 16:25:07  profilanswer
 

lol c'est pas un header qu'il lui fait mais un lien...
Donc c'est plutot
<a href="<?php echo $_SERVER['HTTP_REFERER']; ?>">retour</a>
(pas testé)

n°1337041
anthomicro
Posté le 01-04-2006 à 16:55:06  profilanswer
 

ah merde... désolé je suis fatigué...
 
bref oui c'est la solution de mandalor...

n°1337045
_Roland_
Posté le 01-04-2006 à 17:07:15  profilanswer
 

mandalor a écrit :

lol c'est pas un header qu'il lui fait mais un lien...
Donc c'est plutot
<a href="<?php echo $_SERVER['HTTP_REFERER']; ?>">retour</a>
(pas testé)


ca marche merci :)


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  PHP

  Faire un "précédente" sans javascript

 

Sujets relatifs
Utilisation d'un javascript avec perlBouton abandonner en javascript [RESOLU]
Vérification d'un formulaire SANS javascript[résolu] Problème bouton / javascript
[Javascript] Déplacer le curseur (ou la sélection) dans un textareaJavascript est les bases de données
[JavaScript] afficher/masquer/décalertransfert de valeur dans iframe(javascript)
récup méthodes/propriétés objet javascriptAppliquer un readonly en javascript
Plus de sujets relatifs à : Faire un "précédente" sans javascript


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)