fai tutto tramite sessioni allora, salvi i valori in delle varibili di sessione, guarda...
firstpage.php
e questa è secondpage.php che riceve il valore salvato nella varibile di sessione 'favorite_artist'codice:<?php session_start(); $_SESSION['favorite_artist'] = 'Tori Amos'; ?> Currently, my favorite artist is Tori Amos. It may also interest you to know that my identifier for this browser session, as allocated by PHP, is <?=session_id()?>. Go to the second page ?>
codice:<?php session_start(); ?>Having checked, I can tell you that my favorite artist is still <?=$_SESSION['favorite_artist']?>. At the moment, my identifier for this browser session, as allocated by PHP, is <?=session_id()?>. Go back to the first page ?> provali, così ti rendi conto di come funziona, qua si usa un link. Qua ti fa vedere anche come ricavare l'id di sessione se può interessare...

Rispondi quotando