Welcome to Dream.In.Code
Become a PHP Expert!

Join 149,988 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,378 people online right now. Registration is fast and FREE... Join Now!




Linking php pages

 
Reply to this topicStart new topic

Linking php pages

Kempy535
20 Nov, 2006 - 02:52 AM
Post #1

New D.I.C Head
*

Joined: 19 Nov, 2006
Posts: 10


My Contributions
Hi,
Im trying to write a web site in PHP for a uni project and I cant figure out how to link things. In html its easy you use
<a href="****.htm" target="mainFrame">****</a> but how do I do this in PHP???
Im using three tables and I want to click on a link on a the side table and it displays stuff in the main table. I understand I need an if/else statement but I dont how how to make the link work mad.gif sad.gif
Any help will be hugely apresated, Im not a programmer Im doing a networking degree...
User is offlineProfile CardPM
+Quote Post

Tuzoid
RE: Linking Php Pages
20 Nov, 2006 - 03:50 AM
Post #2

D.I.C Head
Group Icon

Joined: 20 Aug, 2006
Posts: 120



Thanked: 2 times
Dream Kudos: 50
My Contributions
PHP is simply makes HTML dynamic. Usually, PHP outputs HTML. So, I'd still use HTML to do this website. Unless you want to echo something using PHP just for fun, you could do this:
<?php echo "Hello World"; ?>

If you want to echo what you were making:
<?php echo "<a href=\"****.htm\" target=\"mainFrame\">****</a>"; ?>
Remember, your host/server must have PHP enabled, and your file name needs to be: whatever.php

I hope this helped biggrin.gif

This post has been edited by Tuzoid: 20 Nov, 2006 - 03:51 AM
User is offlineProfile CardPM
+Quote Post

Kempy535
RE: Linking Php Pages
20 Nov, 2006 - 04:49 AM
Post #3

New D.I.C Head
*

Joined: 19 Nov, 2006
Posts: 10


My Contributions
Yes It did! Thank you so much, things now make sense! Thank you. biggrin.gif
User is offlineProfile CardPM
+Quote Post

Tuzoid
RE: Linking Php Pages
20 Nov, 2006 - 06:04 AM
Post #4

D.I.C Head
Group Icon

Joined: 20 Aug, 2006
Posts: 120



Thanked: 2 times
Dream Kudos: 50
My Contributions
I'm glad to be of help, but this could have been done with just HTML...I just used PHP to echo the HTML...

If you need anything else, just ask smile.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 07:44PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month