[PHP-DB] passing array to next page

2002-10-06 Thread Smita Manohar

hello all,

im having variable $item_id_v = 100
when i want to pass this value to the page item_maint.php i use the 
statement :
?php echo  A HREF=\item_maint.php?item_id=$item_id_v\ Click /A ?

i need to pass array using such way. but i dont know how to do that.
can anyone pls help me out for this.
thnx in advance

smita.



_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] passing array to next page

2002-10-06 Thread John W. Holmes

Look at the serialize() function or use sessions.

www.php.net/serialize

---John Holmes...

 -Original Message-
 From: Smita Manohar [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, October 06, 2002 6:33 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP-DB] passing array to next page
 
 hello all,
 
 im having variable $item_id_v = 100
 when i want to pass this value to the page item_maint.php i use the
 statement :
 ?php echo  A HREF=\item_maint.php?item_id=$item_id_v\ Click /A
?
 
 i need to pass array using such way. but i dont know how to do that.
 can anyone pls help me out for this.
 thnx in advance
 
 smita.
 
 
 
 _
 Join the world's largest e-mail service with MSN Hotmail.
 http://www.hotmail.com
 
 
 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] passing array to next page

2002-10-06 Thread Marco Tabini

Also, if you decide to use serialize() and unserialize() through the
post variables (I'd recommend against using it in the query URL because
some browsers have a limit as to how much data they can fit into it),
you should consider encrypting it in some way or at least appending an
encrypted CRC to it. This is to prevent a malicious user from modifying
the contents of the array in a way that may be dangerous to PHP or to
your code.

Take a look at these functions:

http://www.php.net/manual/sk/printwn/function.crc32.php

Calculates a CRC

http://ca.php.net/manual/en/ref.mcrypt.php

Family of extensions that provide encryption capabilities (not available
on Win32, I believe)





-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php