PHP inside attribute
This is an open discussion with 4 replies, filed under XSLT.
Search
Hello, Fabio.
You can’t use PHP in XLST like that. Not sure what you’re trying to do but you can use $current-url
instead.
<form id="signup" action="{$current-url}" method="get">
You can find more information about parameters, here.
Acctualy I’m trying to integrate a MailChimp form. Here’s the full code:
<form id="signup" action="<?=$_SERVER['PHP_SELF']; ?>" method="get"> <fieldset class="newsletter" > <h3>Newsletter</h3> <div id="response"> <xsl:text disable-output-escaping="yes"><? require_once('inc/store-address_br.php'); if($_GET['submit']){ echo storeAddress(); } ?></xsl:text> </div> <input id="news_email" type="email" placeholder="digite seu email" /> <input id="news_ok" type="submit" value="OK" /> </fieldset> </form>
Thank you Rainer, I spent so much time searching thru the forum and forgot to search thru the extensions database! :$
Create an account or sign in to comment.
Hi,
Probably there’s another topic about it, but I spent 1 hour searching without luck.
Here’s my problem: I need to put a PHP tag inside an attribute.
How do I escape characters inside attributes?
Thanks in advance.