here's situation:
i have installed php 5 and apache 2.0.
i can call my page with:
localhost\\subd ir\page.php
inside my page i use links like this:
<a href="<?php $_SERVER['PHP_SELF']?>?style=bold" >
to refresh page with new value to variable "style". Problem is that when i
load my page and try to click that link it directs me to:
- "localhost" is missing, and therefore browser reports that page is
unavailable. If i set my link to
<a href="page.php? style=bold">
it's ok, but i'd like to use php_self.
is that maybe problem with apache configuration?
thanks!
i have installed php 5 and apache 2.0.
i can call my page with:
localhost\\subd ir\page.php
inside my page i use links like this:
<a href="<?php $_SERVER['PHP_SELF']?>?style=bold" >
to refresh page with new value to variable "style". Problem is that when i
load my page and try to click that link it directs me to:
- "localhost" is missing, and therefore browser reports that page is
unavailable. If i set my link to
<a href="page.php? style=bold">
it's ok, but i'd like to use php_self.
is that maybe problem with apache configuration?
thanks!
Comment