Module Help, Html & Php
Posted: Thu Feb 28, 2008 3:34 pm
Hi all, i'm still new to php and html, i'm busy creating a OpenSource module for everyone, i'm just a bit stuck.....
Now all i need to get right is to return the $par_weblink from the module parameters to where www.google.co.za is in the code below....
Any help would be much appreciated
Thanks Alot!!!!
Now all i need to get right is to return the $par_weblink from the module parameters to where www.google.co.za is in the code below....
Any help would be much appreciated
Code: Select all
$par_showlink = $params->get( 'showlink'); // Radio Button * Yes *No in module parameters
$par_weblink = $params->get( 'weblink'); // Text Box in module parameters
if($par_showlink=="1")
{ // Exit PHP and display HTML.
?>
<CODE>
<script type="text/javascript" src="http://***.**********.check.js"></script>
<a href="weblink:www.google.co.za?gotonow"><img src="http://***.**********.******.png" style="border: none;" width="80" height="14" alt="My Weblink" /></a>
</CODE>
<?php // Re-Enter PHP.
}