A little help with this script

Discussion in 'PHP' started by tushardhoot1, Jan 7, 2008.

  1. #1
    I am getting this error:


    Parse error: syntax error, unexpected '=', expecting ')' in *edited* on line 14

    From this part of the script:

    #14 foreach ($_POST as $key => $value) {
    #15 $value = urlencode(stripslashes($value));
    #16 $req .= "&$key=$value";
    #17 }
     
    tushardhoot1, Jan 7, 2008 IP
  2. wmtips

    wmtips Well-Known Member

    Messages:
    601
    Likes Received:
    70
    Best Answers:
    1
    Trophy Points:
    150
    #2
    What > entity is doing here? It must be
    
    foreach ($_POST as $key => $value) {
    
    PHP:
     
    wmtips, Jan 7, 2008 IP
    tushardhoot1 likes this.
  3. tushardhoot1

    tushardhoot1 Active Member

    Messages:
    3,013
    Likes Received:
    96
    Best Answers:
    0
    Trophy Points:
    90
    #3
    Thanks!

    Job Done. +rep
     
    tushardhoot1, Jan 7, 2008 IP