On Sat, 27 Apr 2002, Kirk Babb wrote:
> Here's my code:
> <html>
> <body>
> <?php
>     //trying to start a session right here for the usr and pwd variables
>     session_start();
>     session_register("usr", "pwd");
>     if (isset($login)):
> ?>
> <FORM ACTION='<?php echo($PHP_SELF); ?> 

  <?
    session_start();
    other_session_stuff
  ?><html>
  <body>

The session-start call has to be before ANYTHING that generates any HTML
output (such as <html>).

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to