Parse error: syntax error, unexpected '<' in C:\wamp\www\form1.php on line 2 -


this question has answer here:

<form action="form1.php"  method="post">     username <input type="text" name="username"><br />     password <input type="password" name="password"><br />     <input type="submit" name="submitbutt" value="login!"><br /> </form> 

when add lines on code,the procedure runs error :

parse error: syntax error, unexpected '<' in c:\wamp\www\form1.php on line 2

<?php <form action="form1.php"  method="post">     username <input type="text" name="username"><br />     password <input type="password" name="password"><br />     <input type="submit" name="submitbutt" value="login!"><br /> </form> ?> 

echo html code...

<?php echo '<form action="form1.php"  method="post">     username <input type="text" name="username"><br />     password <input type="password" name="password"><br />     <input type="submit" name="submitbutt" value="login!"><br /> </form>'; ?> 

or use html

<?php #your php code ?> <form action="form1.php"  method="post">     username <input type="text" name="username"><br />     password <input type="password" name="password"><br />     <input type="submit" name="submitbutt" value="login!"><br /> </form> <?php #your php code ?> 

Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -