Loading ...
Sorry, an error occurred while loading the content.

Re: [php_greek] array passing ...

Expand Messages
  • Panayotis Vryonis
    Oooops! Typografiko! Sorry! To exw dior8wsei, einai h grammh pou ksekinanei me ==== ... -- yassou.net: be there before you go! http://www.yassou.net/
    Message 1 of 6 , Jun 27, 2001
    • 0 Attachment
      Oooops! Typografiko! Sorry!
      To exw dior8wsei, einai h grammh pou ksekinanei me ====>

      Panayotis Vryonis wrote:

      > O kaluteros tropos (an den 8eleis ssessions) einai na xrhsimopoihseis
      > to serialize. P.x.
      >
      > echo "<input type=hidden name=panos value=\"" .
      > urlencode(serialize($myarray)) . "\">" ;
      >
      > Sthn epomenh selida 8a exeis:
      >
      > $myarray = unserialize(urldecode($panos)) ;
      >
      > An malista 8eleis na eisai "sigouros" oti o xrhsths den kanei peiramata
      > kai bazei me kapoio tropo dikes tou times, mporeis na exeis:
      >
      > Page1.php:
      > $secret="exw ena mustiko (Vougiouklakh)" ;
      > $ser = serialize($myarray) ;
      > $check = md5($ser . $secret) ;
      > echo "<input type=hidden name=mydata value=\"" . urlencode($ser) . "\">" ;
      >
      > echo "<input type=hidden name=check value=\"" . urlencode($check) . "\">" ;
      >
      >
      > Page2.php:
      >
      > $secret="exw ena mustiko (Vougiouklakh)" ;
      ====> if ( md5($mydata . $secret))!=$check ) {
      > ERROR!!!
      > } else {
      > $myarray = unserialize($mydata) ;
      > }
      >
      > Ennoeitai oti to $secret den fanerwnetai *pote* ston xrhsth!
      >
      > Panayotis.
      >
      >



      --
      yassou.net: be there before you go!
      http://www.yassou.net/
    Your message has been successfully submitted and would be delivered to recipients shortly.