Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Trying this and failing

Quote Reply
Trying this and failing
<%set html = GT::WWW::get('http://www.domain.tld/cgi-bin/script.cgi')%>
<%unescape_html html%>

it is returning error:

Error: Variable 'html' is not scalar

the cgi is on the same domain as glinks

How to get this working?

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [HyperTherm] Trying this and failing In reply to
Maybe <%unescape_html $html%> ?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Trying this and failing In reply to
 Unknown Tag: '$html'

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [HyperTherm] Trying this and failing In reply to
Mmm .. intersting :/

Maybe;

<%GT::CGI::unescape_html($html)%>

?

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [HyperTherm] Trying this and failing In reply to
Try using this on its own to see what the function call is returning. It may shed some light.

Code:
<%GT::WWW::get('http://www.domain.tld/cgi-bin/script.cgi')%>
Quote Reply
Re: [Andy] Trying this and failing In reply to
Andy:
Nope it didn't work either. Threw a whole bunch of errors like cannot find GT.pm etc etc.

Fig:
Yrs worked and i could get the cgi form within the luna template. However, the results of computation (it's an amortization calculation script) are outside of the template set.

Anyway, got the template into the cgi script (hardcoded paths etc) to make things easier so that both the form and the results of the computation fall within the luna template outline.

Thanks

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================