otuatail Posted March 22, 2008 Share Posted March 22, 2008 Can anyone help here. Since my provider has changed the configeration of the server to not supress errors. I am getting the following http://www.des-otoole.co.uk/news/NewUser.php here is the top half of the code. TIA <?php // login.php D O'Toole 21-12-2005 session_start(); include ("functions.inc"); //connectDB(); ?> <html> <head> <LINK rel="stylesheet" href="style.css" type="text/css"> </head> <body> <form action="verify.php" method="post"> <table border="0" width="400"> <tr><td height="10"></td></tr> <tr><td colspan="3" height="50"><b>New Member</b></td></tr> <tr><td align="right">First Name:</td> <td><input type="text" Name="F_Name" maxlength="12" value="<?=$_SESSION['FN']?>"></td></tr> <tr><td align="right">Last Name:</td> <td><input type="text" Name="L_Name" maxlength="18" value="<?=str_replace('\\','',$_SESSION['LN'])?>"></td></tr> Quote Link to comment Share on other sites More sharing options...
Barand Posted March 22, 2008 Share Posted March 22, 2008 What is in your SESSION vars echo '<pre>', print_r($_SESSION, 1), '<?pre>'; Quote Link to comment Share on other sites More sharing options...
otuatail Posted March 24, 2008 Author Share Posted March 24, 2008 I get this when I add your sugestion Array ( => [current_page] => Board [Location] => Board [Error_1] => ) Quote Link to comment Share on other sites More sharing options...
Barand Posted March 24, 2008 Share Posted March 24, 2008 Has "short tags" been switched off? Quote Link to comment Share on other sites More sharing options...
otuatail Posted March 24, 2008 Author Share Posted March 24, 2008 confused about this. Do you mean <? as aposed to <?php not sure what is supposed to be used or if this can be switched on or off Quote Link to comment Share on other sites More sharing options...
Barand Posted March 24, 2008 Share Posted March 24, 2008 if short-tags are enabled you can use <?= if not, you need to use <?php echo This is a setting in the php.ini file. phpinfo() will tell you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.