View Full Version : Problem In Passing Variables

11-03-2007, 09:26 AM
I have created php page called sms.php which displays the username retrieved from the database through selecting checkbox.
Here is the code in sms.php:

//here 'check' is the name of checkbox//
//<input type =checkboxname=check[] value=<?$row['username']?>>//
foreach($_POST['check'] as $value)
echo "message sent to $check_msg";
this code displays the username selected from the previous page.
But i want to pass these variables to another page called demo.php from sms.php page and display the same.
Plz help me out.......

11-03-2007, 09:32 AM
Store your array in php session , this link will help An Introduction to PHP Sessions (http://www.phpriot.com/d/articles/php/fundamentals/intro-php-sessions/page7.html)