This topic is locked
[SOLVED]

 v5.1 to v5.2 custom code snippet

8/24/2010 10:47:29 AM
PHPRunner General questions
S
Stettin author

In 5.1 I have a custom code snippet to create a dynamic link with a GET value.
in v5.1 I use {$siteid_value} and get
1149
I can tack this onto the end of a hyperlink, http://www.myurl.com/test.cgi?siteid=1149
in v5.2 I use {$siteid_value} [ <TD><A href="{$event SiteTbl_Snippet1}{$siteid_value}">Extended Site Info</A></TD> ] and get
<span id="edit5_siteid" >1149</span>
how in 5.2 can I pull just the 1149?

A
ann 8/25/2010

Stettin,
there is PHP strip_tags() function to remove html tags.

You can use it in the code snippet.
If it doesn't help please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error. 'Demo Account' button can be found on the last screen in the program.

S
Stettin author 8/25/2010



Stettin,
there is PHP strip_tags() function to remove html tags.

You can use it in the code snippet.
If it doesn't help please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error. 'Demo Account' button can be found on the last screen in the program.


I was able to do a workaround using this:

First I selected the field again with an alias as "extinfo", then clicked on it with the visual editor and picked Display as Custom:



$SiteID = $data["extinfo"];

$value="<a href=\"http://mysite.com/cgi-bin/info.cgi?siteid=$SiteID\">Extended Info</a>";