Jump to content

Help! [Syntax error: unexpected T_ENCLAPSED_AND_WHITESPACE


kir

Recommended Posts

Please help, my php code is messed up..... The error is being generated on the first line.

-----------------------------------------------------------------------------

if ($_POST['loginbtn']){
       $user = $_POST['user']
       $password = $_POST['password']
       
       if ($user){
         if ($password){
         echo "$user - $password <hr /> $form";
         } 
         else
            echo "You must enter your password. $form";
       }
       
       else
            echo "You must enter your username. $form";
   }
   
    else
        echo $form;
    

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.