Log in

View Full Version : [PHP] if(..);



Independent
25-03-2008, 03:58 AM
I was wondering, when you're coding like

?p=kk21rek1ro etc..

Do you echo your code or close the php tag and then put a bracket after it (E.G: BELOW)

<?php
if(isset($_GET['id']))
{
?>
SomeHTMLcontent
<?php
}
?>

Or, do you echo it like below

<?php
if(isset($_GET['id']))
{
echo('SomeHTMLcontent');
}
?>

I prefer the first one, cause' you don't have to add the slashes.

Want to hide these adverts? Register an account for free!