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
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>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.