Jump to content



  • Please log in to reply
2 replies to this topic

#1 Wildhalf

  • Members
  • PipPipPip
  • Advanced Member
  • 101 posts

Posted 20 August 2006 - 06:06 PM

I'm Complete Newbie to PHP but understand it

Just a short question... Could someone give show
me a small bit of html code in a php file..

What i am doing, im editing a login script that i just
wrote thanks to a tutorial from here on phpfreaks,
and want to edit the members area...

Here is the code for the members area at the min


echo "Welcome ". $_SESSION['first_name'] ." ". $_SESSION['last_name'] ."!
    You have made it to the members area!<br /><br />";

echo "Your user level is ". $_SESSION['user_level']." which enables
    you access to the following areas: <br />";

if($_SESSION['user_level'] == 0){
    echo "- Forums<br />- Chat Room<br />";
if($_SESSION['user_level'] == 1){
    echo "- Forums<br />- Chat Room<br />- Moderator Area<br />";

echo "<br /><a href=logout.php>Logout</a>";


Also I have multiple pages that will be linked to this
members area, how will i keep them private???

Thank you for all your help


#2 Carter7

  • New Members
  • Pip
  • Newbie
  • 4 posts
  • LocationUK

Posted 26 August 2006 - 12:02 AM

Could you please explain more, i do not uinderstand what you're asking for, if you're asking how do you write, say a html table into a php file there are 2 ways, either end the php by using ?> or simple use an echo, like shown below:

echo "<html>

#3 Wildhalf

  • Members
  • PipPipPip
  • Advanced Member
  • 101 posts

Posted 28 August 2006 - 10:37 PM


Sorry it took so long to get back to you but i sorted the problem....

I figured out a better way to do what i wanted....

thanks for trying to help

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users