Page 1 of 1
redirection problem
Posted: Wed Dec 03, 2003 6:44 am
by pelegk2
i am not sure its redirection but
what i want is when a "TAB" pressed
i want to call the same page with :
<a href='?cont=4hr-done'>press 1 </a>
but when i do so i am on the same page but it looks like this :
http://localhost/colors/?cont=4hr-done
what to do?
Posted: Wed Dec 03, 2003 10:32 am
by mrvanjohnson
No one will be able to view your sample because you used localhost. You need to define an IP address but to address your problem, if you format your URL link like this it should work.
Code: Select all
<a href="<?php echo $HTTP_SERVER_VARSї"PHP_SELF"] ; ?>?cont=4hr-done">press 1 </a>
or the shortcut version
Code: Select all
<a href="<?php echo $PHP_SELF ; ?>?cont=4hr-done">press 1 </a>
or super shotrcut version
Code: Select all
<a href="<?=$PHP_SELF ; ?>?cont=4hr-done">press 3 </a>
thanks alot
Posted: Thu Dec 04, 2003 12:10 am
by pelegk2
that what i needed
thanks alot but 1 more question
Posted: Thu Dec 04, 2003 12:18 am
by pelegk2
is it possible to "inforce" when a default page is loaded that the name of the page will be show in the adress bar?
thanks in advance
peleg