...

View Full Version : Problem In Passing Variables



manjunath1985
11-03-2007, 08:26 AM
Hi,
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:



<?php
//here 'check' is the name of checkbox//
//<input type =checkboxname=check[] value=<?$row['username']?>>//
foreach($_POST['check'] as $value)
{
$check_msg=$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.......

abduraooft
11-03-2007, 08: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)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum