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.