saseow
Posts: 744
|
| Posted: 02/21/2005, 6:14 AM |
|
Please will someone help on this topic.
I have a link on a page that I want to change to a different page depending on a boolean If statement. How can one set the page the link points to in PHP code?
Thanks in advance!
Trevor
|
 |
 |
aradi
Posts: 66
|
| Posted: 02/21/2005, 7:53 AM |
|
By placing code in the Before Show event, the user can change the URL of the Link control and the text value:
global $LinkName;
// Write your own code here.
if ( $result) {
$Linkname->SetValue("Link text 1here");
$Linkename->SetLink("page1.php");
}
else {
$Linkname->SetValue("Link text 2 here");
$Linkename->SetLink("page2.php");
}
|
 |
 |
saseow
Posts: 744
|
| Posted: 02/21/2005, 9:43 AM |
|
Thanks Aradi, got it!!
|
 |
 |
|