PHPTAL and JavaScript

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I have a problem when i try to output javascript code through phptal the "
quotes come out as &quot and thus wont execute in the browser.

An Example:

<script language="JavaScript">

function hide() { = "block";

Comes out as...

<script language="JavaScript">

function hide() { = &quotblock&quot;

in the source.  Was wondering if anyone knows how to fix this problem.



Re: PHPTAL and JavaScript

Kimmo Laine wrote:
Quoted text here. Click to load it

Unless next_page.php generates PHP, the script with this include will
only get HTML.

Quoted text here. Click to load it


    if (isset($_GET['foo'])) {
      echo '<?php echo $_GET[\'foo\']; ?>';
    } else {
      echo '<?php echo \'Not available\'; ?>';

File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot

Site Timeline