ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

<?=$this->EE->input->post('email')?> Doesn't work after PHP update

August 24, 2012 8:56pm

Subscribe [2]
  • #1 / Aug 24, 2012 8:56pm

    Kubik101

    155 posts

    I was using the following to grab a previously posted email address.
    My host recently updated PHP to 5.3.13 and it no longer works, just renders as code.
    Thought I would ask here before I go back to the host.
    Cheers.

    <?=$this->EE->input->post('email')?>
  • #2 / Aug 26, 2012 8:31am

    John Fuller

    779 posts

    It’s possible the host changed something with the handling of short_open_tag which allows you to use that syntax.

    http://www.php.net/manual/en/ini.core.php#ini.short-open-tag

    I’m not sure this is enabled by default. Check the setting with your host. Personally, I would stay away from doing this for this very reason unless I have more control over my hosting environment.

  • #3 / Aug 27, 2012 2:40am

    Kubik101

    155 posts

    Yep short tag was no longer supported.
    Changed to the following and all is sweet.
    Cheers.
    =)

    <?php echo $this->EE->input->post('email'); ?>
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases