Patrick de Gelder
asked on
Error in php/html code page not loading
Who can explain what is happening:
Using the code like this it works fine,
Add tags to first echo out put and it crash error "the page isn't working".
example:
Any help is welcome
Using the code like this it works fine,
<?php
if (isset($_SESSION['id'])) {
echo $_SESSION['uid'];
} else { echo "<form action='signup.php'>
<button class=' button button1'>SIGN UP</button>
</form>";
}
Add tags to first echo out put and it crash error "the page isn't working".
example:
<?php
if (isset($_SESSION['id'])) {
echo "<tag>$_SESSION['uid'];</tag>"
} else { echo "<form action='signup.php'>
<button class=' button button1'>SIGN UP</button>
</form>";
}
Any help is welcome
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks guys the second entry worked for me :)
ASKER
THank you
Open in new window