Simple syntax PHP error -
this question has answer here:
i'm getting syntax error
parse error: syntax error, unexpected 'text' (t_string) in c:... line 18.
i don't know why getting error. sooner response better. thank much.
<?php session_start(); ?> <!doctype html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>login</title> </head> <body> <div align="center"> <img src="logo.png" alt="school logo"> <h2>login</h2> <?php $form="<form action='./login.php' method='post'> <table> <tr> <td>email:</td> <td>input type="text" name:"email"/></td> </tr> <tr> <td>password:</td> <td><input type="text" name:"password"/></td> </tr> <tr> <td><</td> <td><input type="submit" name="loginbtn" value="login"/></td> </tr> </table> </form>"; if ($_post['loginbtn']){ $email=$_post["email"]; $password=$_post["password"]; if($email){ if($password){ } else echo"you must enter password .$form"; } else echo "you must enter email .$form"; } else echo""; ?> </div> </body> </html>
try
<?php session_start(); ?> <!doctype html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>login</title> </head> <body> <div align="center"> <img src="logo.png" alt="school logo"> <h2>login</h2> <?php $form="<form action='./login.php' method='post'> <table> <tr> <td>email:</td> <td>input type='text' name:'email'/></td> </tr> <tr> <td>password:</td> <td><input type='text' name:'password'/></td> </tr> <tr> <td><</td> <td><input type='submit' name='loginbtn' value='login'/></td> </tr> </table> </form>"; if ($_post['loginbtn']){ $email=$_post["email"]; $password=$_post["password"]; if($email){ if($password){ } else echo"you must enter password .$form"; } else echo "you must enter email .$form"; } else echo""; ?> </div> </body> </html>
change double column single column
Comments
Post a Comment