Well he should have posted it all![]()

Well he should have posted it all![]()
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 helpsPHP 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
}
![]()
Last edited by QuickScriptz; 14-03-2008 at 02:46 PM.
*shrug*
I always used
Always worked for me.PHP Code:<?php echo("<a href=\"register.php\">Register Here</a>"); ?>
i've been here for over 8 years and i don't know why
Want to hide these adverts? Register an account for free!