For example, If I run the following php page
<?phpIf php is not enabled, the output in the browser is just "Welcome". If php is enabled, the output is "Welcome name". Also, if you view source on the page when php is not enabled, you'll see the <?php tag.
$_SESSION['kundnummer'] = "nummer";
$_SESSION['kundnamn'] = "name";
?>
<html>
< body>
<h3 align="center">Welcome <?=$_SESSION['kundnamn']?> </h3>
</body>
<html>
seth
On 6/17/05, Oscar Andersson <[EMAIL PROTECTED]> wrote:
No i dont get any errors.
When i loggin to my webshop a save the name in two session variables
First the customer number
$_SESSION['kundnummer'] = $kundnummer;
Second the customers name
$_SESSION['kundnamn'] = $namn;
Then i print this in a page with
<h3 align="center">Welcome <?=$_SESSION['kundnamn']?></h3>
Oscar Andersson
""Oscar Andersson"" < [EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
>I have installed PHP5 and apache 2 on my computer.
> I have made a application in PHP 5.0 that use session variabels. This
> application works ok when i run it at my IIS webserver but when i try it
> with the apache webserver it doesent work. I think it is something with
> the session variables. Maybe i have to change something with the apache
> server ?
>
> I hope for help
> Oscar Andersson