» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 54
0 members and 54 guests
No Members online
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
buy Rimonabant - Help dieters achieve significant weight loss without having to slog in the gym

Register Now! Contact Us

About this Page
This is a discussion on HTML embedded in PHP... Can I link to an html anchor? within the Site design forums, part of the General category; On my site I create 2 files for each new page I create, a php file and an html file. ...



Go Back   Nukemods Forum » General » Site design

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-02-2005, 12:42 PM
Junior Member
 
Join Date: May 2005
Posts: 9
HTML embedded in PHP... Can I link to an html anchor?
On my site I create 2 files for each new page I create, a php file and an html file.
I put all of the content in the html file and embed that file's url in the php file. (basically make it so the actual link is to the php file, so it includes the html page in the middle of the site while keeping the blocks around it intact)

I am trying to link some text on my articles on the home page to an anchor that is in the html code of another page. (So, the clickable link has to be associated with "games.php", but I want it to find the anchor on "games.html" which is called by the php page.)

Is there a way to do this?

Here is the code for the php file:
Code:
<?PHP 
$index = 1;
if (!IsSet($mainfile)) { include ('mainfile.php'); } 
include("header.php"); 
OpenTable(); 
include ("games.htm"); 
CloseTable(); 
include("footer.php"); 
?>
As you can see, when someone clicks on "games.php", the code includes "games.htm"...
But since my links don't go directly to "games.htm", I can't get it to go to the anchored spot on the html...
(I tried "/games.php#darkfuture" and "/games.php#/games.htm#darkfuture")
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert .php to .HTML, Help please! web_design Nuke 7.x - General 3 02-12-2006 03:39 AM
Want to add an html page with a link in main menu Clarion Open topics 2 03-17-2005 04:15 PM
HTML to PHP iphoenix Open topics 2 06-10-2003 09:25 PM
allow html Suezy Open topics 7 04-23-2003 01:31 AM
No HTML in Sig. Jessie00721 Open topics 8 04-07-2003 08:33 PM


All times are GMT -5. The time now is 07:18 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31