Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default PHP code inside of an EZ page

    very curious, i was trying to run some PHP inside of an EZ page and it is being completely ignored.
    does anyone know why,

    here's an excerpt. to troubleshoot i kept removing things until all that was left was an echo statement.
    and also, just to troubleshoot, it is followed by some JS which runs just fine
    PHP Code:
    <h2>Request Information</h2>
    <p>If you would prefer that we contact you, please complete the relevant fields on the form below and click the
    submit button. A Starlight.com representative will contact you promptly.
    </p>
    <?php  

    echo 'Hello! ';
    ?>
    <script type="text/javascript">alert('hello')</script>


    </div>
    Last edited by tcarden; 17 Dec 2012 at 11:42 PM.

 

 

Similar Threads

  1. PHP inside ezpages
    By TecBrat in forum General Questions
    Replies: 113
    Last Post: 29 Nov 2012, 04:55 PM
  2. New products on home page - where's the php code inside tpl_header?
    By Thannaree in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 10 Jun 2011, 11:16 AM
  3. Adding an Image inside PHP code?
    By limelites in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 9 Oct 2009, 10:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg