Menu

Error in line 4?

Help
Anonymous
2002-10-26
2002-10-26
  • Anonymous

    Anonymous - 2002-10-26

    http://www.bluegamers.com/phpform/forms/form1.html

    After it you submit it says error in line 4 of this document:

    <?php
    $errors=0;
    $error="The following errors occured while processing your form input.<ul>";
    if($Title=="" || $Developer=="" || $Publisher=="" || $ReleaseDate=="" || $Genre=="" || $Length=="" || $Replayability=="" || $Difficulty=="" || $NumberofPlayers=="" || $ReviewAuthor=="" || $GameRating=="" || $ReviewIntro=="" || $Review=="" || $RentorBuy?=="" || $TodaysDate=="" || $GameIntials=="" ){
    $errors=1;
    $error.="<li>You did not enter one or more of the required fields. Please go back and try again.";
    }
    if($errors==1) echo $error;
    else{
    $message="Title: ".$Title."
    Developer: ".$Developer."
    Publisher: ".$Publisher."
    Release Date: ".$ReleaseDate."
    Genre: ".$Genre."
    Length: ".$Length."
    Replayability: ".$Replayability."
    Difficulty: ".$Difficulty."
    Number of Players: ".$NumberofPlayers."
    Review Author: ".$ReviewAuthor."
    Game Rating: ".$GameRating."
    Review Intro: ".$ReviewIntro."
    Review: ".$Review."
    Rent or Buy?: ".$RentorBuy?."
    Gamecube: ".$Gamecube."
    Playstation 2: ".$Playstation2."
    Gameboy Advance: ".$GameboyAdvance."
    Xbox: ".$Xbox."
    Cybiko: ".$Cybiko."
    Todays Date: ".$TodaysDate."
    Game Intials: ".$GameIntials."
    ";
    mail("webmaster@bluegamers.com","Form Submitted at your website",$message,"From: phpFormGenerator");
    $link = mysql_connect("localhost","darkness47","dragon");
    mysql_select_db("Information",$link);
    $query="insert into Reviews (Title,Developer,Publisher,Release,Genre,Length,Replayability,Difficulty,Players,Author,Rating,Intro,Review,Rent,Gamecube,PS2,GBA,Xbox,Cybiko,Date,Intials) values ('".$Title."','".$Developer."','".$Publisher."','".$ReleaseDate."','".$Genre."','".$Length."','".$Replayability."','".$Difficulty."','".$NumberofPlayers."','".$ReviewAuthor."','".$GameRating."','".$ReviewIntro."','".$Review."','".$RentorBuy?."','".$Gamecube."','".$Playstation2."','".$GameboyAdvance."','".$Xbox."','".$Cybiko."','".$TodaysDate."','".$GameIntials."')";
    mysql_query($query);
    header("Refresh: 0;url=http://www.bluegamers.com/thanku.htm");
    }
    ?>

    What is going on here????????

     
    • Musawir Ali

      Musawir Ali - 2002-10-26

      You have asked your question for alteast 4 times, and you don't seem to be looking at the responses. For the last time, do the following:

      You have created a field that is called "Rent or Buy?". You have a question mark in that field. You are not supposed to put any special characters like question marks, colons, semicolons, etc. So recreate the form without the question mark. Once the form is generated, you can simply open up form1.html file and edit it. Add any number of question marks you desire... but _after_ the form has been created. The special characters mess up the form processor if you do it during the form creation.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.