IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

PHP & Base de données Discussion :

Sérialisation de valeur


Sujet :

PHP & Base de données

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Profil pro
    Inscrit en
    Février 2007
    Messages
    49
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 49
    Par défaut Sérialisation de valeur
    Bonjour,

    Rentabiliweb à changer son système de script de paiement et je galère pas mal pour l'installation de ceux-ci.

    En résumé j'ai une page ou la personne rentre c'est coordonnées (pseudo, prenom, nom,...) et les informations sont récupéré sur une page php ou il y a le formulaire de paiement. (page : http://domaine.tld/page.php?pseudo=l...prenom&nom=nom...) Et je voudrais que le formulaire de paiement envoye correctement les informations demandé sur la page sécurisé.

    Après prise de contact avec rentabiliweb ils m'ont signalé qu'il fallait faire une serialization comme ce lien l'indique : http://blog.rentabiliweb.com/index.p...on#valeurs_sup

    Cependant vu mon niveau je ne comprend pas tout, j'ai fais un mélange total avec ce que j'ai trouvé sur le net mais la je galère un max :S

    Si quelqu'un veut bien m'aider je suis preneur, merci beaucoup

  2. #2
    Membre Expert Avatar de Madfrix
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    2 326
    Détails du profil
    Informations personnelles :
    Localisation : France, Gironde (Aquitaine)

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 326
    Par défaut
    boujour, serialize permet de passer un tableau dans l'url sans perdre sa structure ni ses données ensuite (récupérées avec unserialize)

    Code php : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
     
    $tableau = array('val1', 'val2', 8);
    $data = serialize($tableau);
     
    echo $data;
    //a:3:{i:0;s:3:"gfx";i:1;s:5:"jljko";i:2;i:8;}
     
    $data = unserialize($data);
     
    print_r($data);
    Array ( [0] => gfx [1] => jljko [2] => 8 )

  3. #3
    Membre averti
    Profil pro
    Inscrit en
    Février 2007
    Messages
    49
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 49
    Par défaut
    J'ai essayer avec ton aide et un mélange de l'aide du site d'aide de rentabiliweb, j'ai essayé avec plusieurs combinaison mais cela ne me donne pas grand chose :S

    Voila ce que j'ai mis. Sur le fichier de la page avec le formulaire d'adresse : http://site.tld/page.php?prenom=vinc...nc&ville=paris

    J'ai mis :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    <?php 
    $tableau = array($prenom, $pseudo, $ville);
    $data = serialize($tableau);
    echo $data;
    ?>
    formulaire de rentabiliweb juste en dessous en ayant ajouter :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <input type="hidden" name="data" value="$data"/>
    Puis sur la page sécurisé (ou je veux récupéré les champs) :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    <?php
    $tableau = unserialize($data);
    $data=$_GET['data'];
    ?>
    Prenom : <?php echo "".$_GET['data[0]'] ; ?>
    Pseudo : <?php echo "".$_GET['data[1]'] ; ?>
    Ville :<?php echo "".$_GET['data[2]'] ; ?>
    Merci beaucoup et désolé de vous ennuyez avec cela :s

  4. #4
    Membre Expert Avatar de Madfrix
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    2 326
    Détails du profil
    Informations personnelles :
    Localisation : France, Gironde (Aquitaine)

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 326
    Par défaut
    Citation Envoyé par zoneech Voir le message
    Puis sur la page sécurisé (ou je veux récupéré les champs) :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    <?php
    $tableau = unserialize($data);
    $data=$_GET['data'];
    ?>
    Prenom : <?php echo "".$_GET['data[0]'] ; ?>
    Pseudo : <?php echo "".$_GET['data[1]'] ; ?>
    Ville :<?php echo "".$_GET['data[2]'] ; ?>
    le unserialize sert à retrouver la structurede ta variable (en gros passer d'un string en tableau de ton coté) donc tu ne dois pas utiliser $_GET['data[0]'] pour acceder à tes données mais $tableau[0] par exemple

  5. #5
    Membre averti
    Profil pro
    Inscrit en
    Février 2007
    Messages
    49
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 49
    Par défaut
    J'ai essayé en remplaçant comme tu l'as dit j'ai donc mis :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    <?php
    $tableau = unserialize($data);
    $data=$_GET['data'];
    ?>
    Prenom : <?php echo "".$_GET['tableau[0]'] ; ?>
    Pseudo : <?php echo "".$_GET['tableau[1]'] ; ?>
    Ville :<?php echo "".$_GET['tableau[2]'] ; ?>
    Mais rien à faire le résultat est : Prenom : Pseudo : Ville :
    Il n'indique pas les résultats de la page précedente

  6. #6
    Membre Expert Avatar de Madfrix
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    2 326
    Détails du profil
    Informations personnelles :
    Localisation : France, Gironde (Aquitaine)

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 326
    Par défaut
    ta ligne :

    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    <input type="hidden" name="data" value="$data"/>

    est bien générée par du php (ie: ton value contient bien ta valeur serialisée et non pas '$data') ?

    EDIT: récupères ton tableau unserialisé par $tableau = unserialise($_GET['data']);

  7. #7
    Membre averti
    Profil pro
    Inscrit en
    Février 2007
    Messages
    49
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 49
    Par défaut
    J'ai essayer de remplacer $data par $tableau mais la même :s
    Concernant $tableau = unserialise($_GET['data']); cela me met une erreur :
    Fatal error: Call to undefined function unserialise() in /home/***/alpha2.php on line 2

    Enfin la en résumé j'ai sur la page ou ya le formulaire :




    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    <?php 
    $tableau = array($prenom, $nom);
    $data = serialize($tableau);
    echo $data;
    ?>
     
     
     
    <table border="0" cellpadding="0" cellspacing="0" style="border:5px solid #E5E5E5; margin: 5px auto;"><tr><td>
    <table border="0" cellpadding="0" cellspacing="0" style="width: 300px; border: solid 1px #AAAAAA; ">
      <tr>
        <td style="text-align:left; border-bottom: 1px solid #D8DFEA; height: 30px; "><a href="http://www.rentabiliweb.com/" target="_blank"><img src="http://payment.rentabiliweb.com/data/i/component/logo-form.gif" width="173" height="20" alt="Paiement sécurisé par Rentabiliweb" style="padding: 1px 0 0 5px; border: none;" /></a></td>
      </tr>
      <tr>
        <td style=" text-align:center; background-color:#ffffff;"><div style="text-align:center">
          <p style=" font-family:Arial, Helvetica, sans-serif; padding: 5px; margin: 0px;"> 
    	  	<span style="font-size: 12px; font-weight:bold; color:#3b5998;">Choisissez votre pays : </span> <br />
    			<span style="font-size: 11px; font-style: italic; color:#5c5c5c;"> Choose your country : </span></p>
           <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=FR','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/74.gif" width="25" height="15" alt="France" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=DT','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/238.gif" width="25" height="15" alt="France DOM TOM" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=DE','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/5.gif" width="25" height="15" alt="Germany" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=AR','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/12.gif" width="25" height="15" alt="Argentina" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=AU','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/15.gif" width="25" height="15" alt="Australia" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=AT','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/16.gif" width="25" height="15" alt="Austria" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=BE','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/22.gif" width="25" height="15" alt="Belgium" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=BO','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/29.gif" width="25" height="15" alt="Bolivia" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=CA','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/38.gif" width="25" height="15" alt="Canada" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=CL','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/42.gif" width="25" height="15" alt="Chile" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=CO','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/45.gif" width="25" height="15" alt="Colombia" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=DK','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/54.gif" width="25" height="15" alt="Denmark" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=US','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/65.gif" width="25" height="15" alt="United States" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=CZ','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/67.gif" width="25" height="15" alt="Czech Republic" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=FI','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/73.gif" width="25" height="15" alt="Finland" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=UK','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/81.gif" width="25" height="15" alt="United KingDom" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=GR','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/82.gif" width="25" height="15" alt="Greece" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=HU','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/95.gif" width="25" height="15" alt="Hungary" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=IE','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/111.gif" width="25" height="15" alt="Ireland" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=IT','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/114.gif" width="25" height="15" alt="Italy" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=LU','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/131.gif" width="25" height="15" alt="Luxembourg" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=MA','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/138.gif" width="25" height="15" alt="Morocco" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=MX','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/142.gif" width="25" height="15" alt="Mexico" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=NO','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/157.gif" width="25" height="15" alt="Norway" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=NL','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/167.gif" width="25" height="15" alt="Netherlands" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=PE','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/168.gif" width="25" height="15" alt="Peru" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=PT','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/174.gif" width="25" height="15" alt="Portugal" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=RO','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/180.gif" width="25" height="15" alt="Romania" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=RU','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/181.gif" width="25" height="15" alt="Russian" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=SE','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/204.gif" width="25" height="15" alt="Sweden" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=CH','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/205.gif" width="25" height="15" alt="Switzerland" style=" border: none; margin: 5px;" /></a>  <a href="javascript:;" onclick="javascript:window.open('http://payment.rentabiliweb.com/form/acte/popup.php?docId=96510&siteId=353532&cnIso=UA','bepass_display_popup','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,menuBar=0,width=300,height=350');"><img src="http://payment.rentabiliweb.com/data/i/flags/25_15/225.gif" width="25" height="15" alt="Ukraine" style=" border: none; margin: 5px;" /></a>             <p style=" font-family:Arial, Helvetica, sans-serif; padding: 2px; margin: 0px;">
    	  <span style="font-size: 12px; font-weight:bold; color:#3b5998;">Payer par carte bancaire : </span> <br />
    		<span style="font-size: 11px; font-style: italic; color:#5c5c5c;"> Pay by credit card :</span></p>
    	   <a href="javascript:;"  onclick="javascript:window.open('https://ssl.rentabiliweb.com/cc/acte/payment.php?docId=96510&siteId=353532','rentabiliweb_payment_cc','toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=1,copyhistory=0,menuBar=0,width=620,height=590');"><img src="http://payment.rentabiliweb.com/data/i/flags/cb.gif" width="102" height="16" alt="pay by credit card"  style="border: none;" /></a>
          	  <div style=" margin: 5px 0 0 0; border-top: solid 1px #D8DFEA; background-color:#F7F7F7;">
          <form id="rweb_tickets_96510"  method="get" action="http://payment.rentabiliweb.com/access.php" style="margin: 0px; padding: 0px;" >
            <table width="280" cellpadding="0" cellspacing="0" style=" margin: 2px auto;">
                    	<tr>
                    		<td style="text-align: center"><label for="code_0" style=" font-family:Arial, Helvetica, sans-serif;font-size: 12px; font-weight:bold; color:#3b5998; padding: 2px 2px 5px 2px; margin: 0px;">
                            Saisissez votre code d'accès et validez :<br/>
                    <span style="font-size: 11px; font-style: italic;color:#5c5c5c;">Please enter your access code :</span>                    </label></td>
                    	</tr>
                    	<tr>
                    		<td style="text-align: center">
                    																	<input name="code[0]" type="text" id="code_0" size="10" style="border: solid 1px #3b5998; padding: 2px; font-weight: bold; color:#3b5998; text-align: center;"/>
    																					<input type="hidden" name="docId" value="96510" /><input type="button"  alt="Ok" onclick="getElementById('rweb_sub_96510').disabled=true;document.getElementById('rweb_tickets_96510').submit();" id="rweb_sub_96510"  style="width: 40px; height:20px; vertical-align:middle; margin-left: 5px; border: none; background:url(http://payment.rentabiliweb.com/data/i/component/button_ok.gif);"/></td>
    <input type="hidden" name="data" value="$_GET['data']"/>
                    	</tr>
                    </table>
           </form>
    	   <div style="text-align: center; padding: 2px; font-family: Arial, Helvetica, sans-serif; clear: both;"><span style="font-weight:bold; font-size: 10px; color: #3b5998;">Votre navigateur doit accepter les cookies</span><br />
              <span style="font-style: italic; font-size: 10px; color: #5c5c5c;">Please check that your browser accept the cookies</span></div>
     
    	  </div>
    	  </div></td>
      </tr>
    </table></td></tr></table>

    Et sur la page sécurisé :


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    <?php
    $tableau = unserialise($_GET['data']); 
    $data=$_GET['data'];
    ?>
    Prenom : <?php echo "".$_GET['tableau[0]'] ; ?>
    Pseudo : <?php echo "".$_GET['data[1]'] ; ?>
    Ville :<?php echo "".$_GET['tableau[2]'] ; ?>
    Merci beaucoup

  8. #8
    Membre Expert Avatar de Madfrix
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    2 326
    Détails du profil
    Informations personnelles :
    Localisation : France, Gironde (Aquitaine)

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 326
    Par défaut
    Citation Envoyé par zoneech Voir le message
    J'ai essayer de remplacer $data par $tableau mais la même :s
    Concernant $tableau = unserialise($_GET['data']); cela me met une erreur :
    Fatal error: Call to undefined function unserialise() in /home/***/alpha2.php on line 2

    C'est unserialize désolé

    Sinon ton problème est simple à priori :

    1) tu passes ton tableau dans ton url
    $url = 'ton_url?data='serialize($tableau);
    2) tu récupères sur ton autre page la valeur data et tu la déserialize
    $data_unserialize = unserialize($_GET['data']);
    3) tu récupéres bien ton tableau $tableau dans $data_unserialize

    Ensuite, je sais pas vraiment quelles sont tes contraintes via ton système de paiement mais en faisant ce que je t'ai montré, tu tranferes ton tableau de pages en pages, libre à toi d'utiliser ensuite ce tableau à ta guise

Discussions similaires

  1. Réponses: 3
    Dernier message: 31/07/2012, 15h50
  2. Réponses: 5
    Dernier message: 31/10/2007, 17h12
  3. sérialiser une valeur TFONT.style
    Par richard038 dans le forum Langage
    Réponses: 2
    Dernier message: 04/04/2006, 21h02
  4. [XSLT]position d'un element de valeur specifique
    Par squat dans le forum XSL/XSLT/XPATH
    Réponses: 6
    Dernier message: 25/07/2002, 16h42
  5. Réponses: 2
    Dernier message: 22/07/2002, 18h02

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo