43 users online (2 members and 41 guests)  


  Results 1 to 3 of 3

Related

  1. Replies: 0
  2. Passing Javascript variables to a form    Forum: Javascript Forum
    Replies: 0
  3. Replies: 2
  4. Replies: 0
  5. Passing variables from HTML page to page    Forum: HTML Forum
    Replies: 1
  1. #1
    manjunath1985's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2007
    Posts
    3

    Question 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
    foreach($_POST['check'] as $value) //here 'check' is the name of checkbox//
    //<input type =checkbox name=check[]
    value=<?$row['username']?>>//
    { 
    $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. #2
    MdBenner's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2007
    Posts
    12

    Re: Problem In Passing Variables

    Hey there,

    I am sorry I can not quite figure out what you actually want to do. Why don't you try explaining it once more, a little more detailed, then I will try to help you out!

    Simon

  3. #3
    edpudol's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2007
    Posts
    5

    Re: Problem In Passing Variables

    I guess you can pass the value of the variables to demo.php by doing something like this
    demo.php?check=$_POST['check']
    Last edited by edpudol; 12-14-2007 at 11:34 PM.



Tags for this Thread