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.

EE is outputing EE code

October 13, 2011 12:02pm

Subscribe [0]
  • #1 / Oct 13, 2011 12:02pm

    MrBaseball34

    99 posts

    I have this code

    {if segment_2 == "submit"}
    <?
      $embed_params = 'EmailAddress="' . $_POST['EmailAddress'] . '" ParticipantID="' . $_POST['ParticipantID'] . '" ';
      $embed_params .= 'DOB="' . $_POST['DOB'] . '" Last4SSN="' . $_POST['Last4SSN'] . '" ';
    ?>  
    {embed="/forgot_password_form_ka" site="{segment_3}" message="{exp:forgot_password:send_email <?=$embed_params?>}" <?=$embed_params?>}
    {if:elseif segment_2 == "reset"}
    {embed="/inc/forgot_password_reset_ka" site="{segment_4}" email="{exp:forgot_password:check_code code="{segment_3}" }"  code="{segment_3}"}
    {if:elseif segment_2 == "reset_submit"}
    {embed="/inc/forgot_password_reset_ka" site="{segment_3}" message="{exp:forgot_password:update_password code="<?=$_POST["code"]?>"  password="<?=$_POST["password"]?>" }" }
    {if:else}
    {embed="/forgot_password_form_ka" site="{segment_2}"}
    {/if}

    and, when segment_2 = submit, instead of actually including the file /forgot_password_form_ka from the code inside the first {if} , it is outputting the tags code:

    {embed="/forgot_password_form_ka" site="" message="account_found" EmailAddress="[email protected]" ParticipantID="" DOB="01-01-1969" Last4SSN="9999" }

    Any ideas as to why? We have a similar script that has been working flawlessly for years.

  • #2 / Oct 13, 2011 1:15pm

    MrBaseball34

    99 posts

    Egg on my face…The links were incorrect. should be /inc/....

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases