<!-- PLEASE TELL HOW TO SOLVE THE ERROR FOR THE FOLLOWING CODE. Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in F:\xampp\htdocs\BASIC\form1.php --> <html> <?php $connect=mysql_connect("localhost","root",""); mysql_select_db("regis",$connect); if(isset($_REQUEST['submit'])) { $result1=mysql_query("SELECT email,password FROM regist WHERE email='$_POST['mailid']' and password='$_POST['pwd']' ");<br> //$result2=mysql_query("SELECT FROM regist WHERE "); if($result1) { echo "YOU HAVE SUCCESSFULY LOG IN!"; } else { echo "YOU ENTERED WRONG EMAIL/PASSWORD!, PLEASE TRY AGIAN!"; } } ?> <body bgcolor="#33CCCC"> <br> <h1 align="center"><b>SIGNIN</b></h1> <form action="www.google.com" method="post"><br> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="row">EMAIL </th> <td>: </td> <td><input name="mailid" type="text" /> </td> </tr> <tr> <th scope="row">PASSWORD </th> <td>: </td> <td><input name="pwd" type="text" /> </td> </tr> <tr> <th scope="row"> </th> <td> </td> <td><input name="submit" type="submit"/> </td> </tr> </table> </form> <?php echo " "; ?> </body> </html>
THIS IS THE ERROR MESSAGE..,
==========================
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in F:\xampp\htdocs\BASIC\form1.php on line 8
*** EDIT ***
Please use code tags when posting code

Attached File(s)
-
form1.php (1.14K)
Number of downloads: 17
This post has been edited by GunnerInc: 04 July 2012 - 07:47 AM
Reason for edit:: Added code tags