T_VARIABLE Error .... can't figure it out

Discussion in 'PHP' started by DiscussNow, Oct 29, 2008.

  1. #1
    
    <? php
    $para = $_POST('send');
    $result = explode('.',$para);
    echo $result ;
    ?>
    
    PHP:

     
    DiscussNow, Oct 29, 2008 IP
  2. keyaa

    keyaa Peon

    Messages:
    137
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    $_POST is an array, not a function.. so please try using $_POST['send'] (not $_POST('send'))
     
    keyaa, Oct 29, 2008 IP
  3. six.sigma

    six.sigma Peon

    Messages:
    42
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Like said above.
    It should be:

    
    <?php
    $para = $_POST['send'];
    $result = explode('.',$para);
    echo $result;
    ?>
    
    PHP:
     
    six.sigma, Oct 31, 2008 IP