|
Title: Input box, Help Post by: aravot on April 23, 2005, 12:56:50 AM I am trying to create a input box where a user would write his/here website address once saved the address would be displayed with an appended code.
input box Code: <param name="link" type="text" default="" label="Link" description="URL to Galler2 folder" /> ----------- get address Code: $link = $params->get( 'link' ); echo "<a href=" . $link . "main.php?g2_view=imageblock:External&g2_blocks=randomImage"; ?> example; user write this http://www.mywebsite.com displayed this http://www.mywebsite.com/main.php?g2_view=imageblock:External&g2_blocks=randomImage Thanks Title: Re: Input box, Help Post by: cowboy on April 26, 2005, 10:26:32 AM all looks fine, except here...
Code: <?php $link = $params->get( 'link' ); $link = $link."/main.php?g2_view=imageblock:External&g2_blocks=randomImage"; ?> <a href="<?php echo $link; ?>">text</a> Title: Re: Input box, Help Post by: aravot on April 26, 2005, 03:07:44 PM Quote from: admin on April 26, 2005, 10:26:32 AM all looks fine, except here... Code: <?php $link = $params->get( 'link' ); $link = $link."/main.php?g2_view=imageblock:External&g2_blocks=randomImage"; ?> <a href="<?php echo $link; ?>">text</a> Thank you, but instead of displaying 'text' I want to display output of the link which should be an image from gallery Title: Re: Input box, Help Post by: aravot on April 27, 2005, 03:01:10 PM Finally got it to work.
Code: <?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); $link = $params->get( 'link' ); $link = $link."/main.php?g2_view=imageblock:External&g2_blocks=randomImage"; @readfile($link) ?>
Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved. |