#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    23
    Rep Power
    0
    The server keeps responding with:
    Parse error: parse error in /blah/blah/a.php3 on line 23
    line 23 is the last line!!

    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre><?php
    if ($HTTP_REFERER="http://www.blahblah.com/feedback.html") {
    //get all the inputs from all of the forms
    $i=0;
    if (!is_array($HTTP_POST_VARS))
    return;
    reset($HTTP_POST_VARS);
    while(list($key, $val) = each($HTTP_POST_VARS)) {
    $GLOBALS[$key] = $val;
    $val=stripslashes($val);

    //mail everything off to admin
    $message = $message. "$key : $valn";
    }
    $mailto= "ckc87@baba.com";
    $subject= "abac";
    $from= "badff";
    $message= "$message";
    mail( "$mailto", "$subject", "$message", "From: $from");
    }
    else {
    header("Location: pw.html")
    }
    ?>[/code]


    ------------------
    C.K.C.
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15
    you are missing a ";" here


    else {
    header("Location: pw.html")
    }


    It should be:


    else {
    header("Location: pw.html");
    }

    ------------------
    SR -
    shiju.dreamcenter.net

    "The fear of the LORD is the beginning of knowledge..."

    [This message has been edited by Shiju Rajan (edited June 07, 2000).]

Similar Threads

  1. simple form, simple trigger, whats wrong ??
    By zishto in forum Oracle Development
    Replies: 3
    Last Post: January 12th, 2004, 01:25 PM
  2. wats wrong with my method? newbie alert!
    By dave2k in forum Java Help
    Replies: 4
    Last Post: November 10th, 2003, 10:44 AM
  3. *sigh*
    By vb.net in forum Dev Shed Lounge
    Replies: 45
    Last Post: November 9th, 2003, 07:52 PM
  4. offsetHeight returning the wrong height
    By Tobbe in forum HTML Programming
    Replies: 10
    Last Post: October 19th, 2003, 08:23 AM

IMN logo majestic logo threadwatch logo seochat tools logo