Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problem In Passing Variables

    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:

    Code:
    <?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.......

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,862
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Store your array in php session , this link will help An Introduction to PHP Sessions
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •