Hello.
I am trying to create a registeration system on my website using PHP and MySQL. BUt whenever I put <?php ?> tags and start coding and test it, I get this error
Parse error: syntax error, unexpected T_STRING on line 39
Here is my code:
<?php
$form = "<form method="post" action="signup-p.php" id="signupform">
<div class="form">
<div class="fieldset">
<input name="signup_form" type="hidden" />
<div class="input">
<label for="username">Username</label>
<input type="text" name="user" id="username" value="" />
</div>
<div class="input">
<label for="email">E-mail</label>
<input type="text" name="email" id="email" value="" />
</div>
<div class="input">
<label for="email_confirm">Confirm E-mail</label>
<input type="text" name="email_confirm" id="email_confirm" value="" />
</div>
<div class="input">
<label for="password">Password</label>
<input type="password" name="password" id="password" />
</div>
<div class="input">
<label for="password_confirm">Confirm password</label>
<input type="password" name="password_confirm" id="password_confirm" />
</div>
</div>
<div class="button"><strong><input type="submit" class="submit" name="registerbtn" value="Sign up" /></strong></div>
</div>
</form>"
?>
The code error on line 39:
$form = "<form method="post" action="signup-p.php" id="signupform">
If you need more details, let me know. Please help me fix the issue.
Thanks.
Hassan.