Module Help, Html & Php

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
Icidis
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Nov 06, 2006 7:23 am

Module Help, Html & Php

Post by Icidis » 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

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.
  	}
Thanks Alot!!!!

Post Reply