Parse error: syntax error, unexpected '<' in C:\wamp\www\form1.php on line 2 -
this question has answer here:
- php parse/syntax errors; , how solve them? 11 answers
<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
Post a Comment