Reputation: 277
Could someone tell me what fails in the following line:
echo '<div id="login"><div id="centrar_app"><label>Success. Created account. <a href='login_app.php'>Log In</a></label></div></div>';
I know it must be a tiny stupid error, but I don't get it.
Thank you for your time
Upvotes: 1
Views: 57
Reputation: 1912
You are mixing double quote with single quote, use below:-
echo '<div id="login"><div id="centrar_app"><label>Success. Created account. <a href="login_app.php">Log In</a></label></div></div>';
You can use your current script with the php variable like below:-
$login_url='login_app.php';
echo '<div id="login"><div id="centrar_app"><label>Success. Created account. <a href='.$login_url.'>Log In</a></label></div></div>';
Upvotes: 1
Reputation: 109
Try This:
<?php
echo '<div id="login"><div id="centrar_app"><label>Success. Created account. <a href="login_app.php">Log In</a></label></div></div>';
?>
Upvotes: 1
Reputation: 5322
Replace your code with this code, its just mistake of single quote**(')** and double quote**(")**
echo '<div id="login"><div id="centrar_app"><label>Success. Created account. <a href="login_app.php">Log In</a></label></div></div>';
Upvotes: 1
Reputation: 7149
You are mixing single quotes and double quotes. href='login_app.php'
change to href="login_app.php"
Try this,
echo '<div id="login"><div id="centrar_app"><label>Success. Created account. <a href="login_app.php">Log In</a></label></div></div>';
Upvotes: 1