SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jul 2005
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Session And Cookies

    Hi

    How to Create Session Variable and Use them in Multiple Form in Php.

  2. #2
    SitePoint Member
    Join Date
    Jul 2005
    Location
    Azerbaijan
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    u can use on the header of page

    PHP Code:
    session_start(); 
    after this u can use scripts and all html files

    but after this u can add variables to session

    PHP Code:
    $_SESSION['user'] = 'MicroPHP';
    $_SESSION['mail']   = 'info@microphp.com'

    and on other pages u can use this

    don't remember about
    PHP Code:
    session_start(); 
    PHP Code:
    echo "My User".$_SESSION['user'];

    echo 
    "My Mail".$_SESSION['mail']; 


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •