I am confused here. I have been playing around with php for a while and I have created soem demo and test stuff that worked fine. In the mean time php was upgraded and today I tried some of teh pages I wrote and it does not work anymore. Seems like variables are ignored as soon as I use session stuff. I checked my php.ini file and everything is correct as far as I know. SuSE 8.1 Installed packages: ------------------- mod_php4-core-4.3.0RC2-0 phplib-7.2d-520 mod_php4-4.3.0RC2-0 phpdoc-4.0.6-222 apache-example-pages-1.3.26-57 apache-1.3.26-57 Here are an example: If I comment the two session lines (session_start and session_register) then the '$form[comment]' and '$actionflag' variables keep their values, but as soon as any one of those lines are uncommnted, teh variables loose their values, even though they appear in the URL. Any idea what will cause this? bybellib.inc: ------------- <?php session_start(); session_register( "session" ); // --------------------------------------------------------- function writeLog( $message ) { $filename = "testlog.log"; $fp = fopen( $filename, "a" ) or die( "Could not open testlog.log!" ); fputs( $fp, $message."\n" ); fclose( $fp ); } // writeLog // --------------------------------------------------------- function addKeyword( $keyword ) { writeLog( "addKeyword: keyword = $keyword" ); } // addKeyword // --------------------------------------------------------- add_comment.php: ---------------- <?php include("bybellib.inc"); if( isset( $actionflag ) && $actionflag=="add_comment" ) { if( empty( $form[comment] ) ) { $message .= "No comment entered<br>\n"; } if( $message == "" ) { $message = "Comment = ".$form[comment]; } } ?> <html> <head> <title>Add Comment</title> </head> <body bgcolor="#F1E4A4"> <?php include("publicnav.inc"); ?> <h1>Add Comment</h1> <?php if( $message != "" ) { print "<b>$message</b><p>"; } // Debug print "<b>actionflag = $actionflag</b><p>"; ?> <p> <form action="<?php print $HPH_SELF;?>"> <input type="hidden" name="actionflag" value="add_comment"> <input type="hidden" name="<?php print session_name() ?>" value="<?php print session_id() ?>"> Keyword: <input type="text" name="form[comment]" value="<?php print $form[comment]?>"><br><br> <p> <input type="submit" value="Update"> </p> </form> </body> </html> -- Andre Truter Software Engineer Registered Linux user #185282 ICQ #40935899 AIM: trusoftzaf http://www.trusoft.za.net <-------------------------------------------------> < The box said: Requires Windows 95 or better... > < So I installed Linux > <------------------------------------------------->