Results 1 to 2 of 2

Thread: Can I sesion many post value in one page?

  1. #1
    Join Date
    Aug 2010
    Posts
    47

    Can I sesion many post value in one page?

    I use below code, it back some warning:
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent in C:\www\htdocs\search.php on line 65

    This is the code on line 65:
    HTML Code:
    <? session_start();
    if($_SERVER['REQUEST_METHOD']=="POST") {
      $_SESSION["name1"] = $_POST["name1"] ;
      $_SESSION["name2"] = $_POST["name2"] ;
      $_SESSION["name3"] = $_POST["name3"] ;
    }
    ?>

  2. #2
    Join Date
    May 2010
    Location
    England
    Posts
    54
    Do you have any code above that?

Similar Threads

  1. How to post URL's on to a web page dynamically?
    By deelyght in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 15 May 2010, 12:27 AM
  2. IPB3forum: Embedding scripts like ads etc in first post & bot autoposting second post
    By mahavatar in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 06 Apr 2010, 09:51 AM
  3. Show/hide div on page load
    By denno020 in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 23 Dec 2009, 10:57 PM

Posting Permissions

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