Well he should have posted it all :P
Printable View
Well he should have posted it all :P
As I've been reading this thread the use of parentheses in the echo construct have been really bugging me. Just so we're all clear, it is a much better practice to NEVER use parentheses while using the echo construct - main reason being that you cannot pass more than one parameter when using parentheses.
Anyway.... here would be the correct usage in your situation...
Hope that helps :)PHP Code:// If or else statement should go here
echo '<a href="register.php">Register Here</a>
</td></tr></table></form></center>';
}
if ($_POST['login']) { // Option #1
$username = $_POST["username"];
$password = md5($_POST["password"]);
// Rest of stuff goes here
}
if (isset($_POST['login'])) { // Option #2
$username = $_POST["username"];
$password = md5($_POST["password"]);
// Rest of stuff goes here
}
if ($_POST['login'] != null) { // Option #3
$username = $_POST["username"];
$password = md5($_POST["password"]);
// Rest of stuff goes here
}
*shrug*
I always used
Always worked for me.PHP Code:<?php echo("<a href=\"register.php\">Register Here</a>"); ?>