Jump to content

Hiding Address for PHP link


ljzxtww

Recommended Posts

hi:

 

:)i dont want to anybody to see my link: http://www.example.com/test

 

How can i put code in Index

 

the have link example: <a href="index.php">LinkThextHere</a>

 

and I want to hide the link. like when i click "LinkThextHere" so it will be example.com/#

 

 

example like this link HHS library: hhslibrary.net

 

click any link from teacher Resources / Student Resources

 

you will see what happened

 

thank you

 

 

larry pappas

Link to comment
https://forums.phpfreaks.com/topic/93790-hiding-address-for-php-link/
Share on other sites

If you are talking about the functionality of the links, you will need to learn a little AJAX.

 

hi:

 

Can I  use iframe page hiding url in PHP

 

and use the code is:

function toggle_page(page) {
if (page == 1) {
p1.style.display="";
p2.style.display="none";
}
else {
p1.style.display="none";
p2.style.display="";
}
}

<a href=# onClick="toggle_page(1)">show page1</a> | <a href=# onClick="toggle_page(2)">show page2</a>

<div id=p1>
<? include("page1.php");?>
</div>

<div id=p2 style="display: none">
<? include("page2.php");?>
</div>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.