|
-
Nov 27th, 2009, 05:18 PM
#1
[RESOLVED] Display a link, etc using php
Hi,
What is the best way to display a link, etc using php? I know that I can use:
PHP Code:
echo "<a href=../index.php>Home</a>";
However, it doesn't make much sense to use php if all I'm doing is echoing the html code.
Thanks,
Nightwalker
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Nov 27th, 2009, 05:31 PM
#2
Re: Display a link, etc using php
close your php code, use HTML, open php again.
PHP Code:
<?php if ($jose == "taco") { ?> <a href="hello.php">Hello</a> <?php } else { ?> <a href="goodbye.php">Goodbye</a> <?php }
//code... code...
}
-
Nov 27th, 2009, 07:46 PM
#3
Re: Display a link, etc using php
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|