Trying to convert a <cfif> statement into it's if script counterpart but it's body contains a <form> tag.
This is located within an onRequestStart method within my application.cfc file.
CF
<cfscript>
if (!isdefined("session.username")) {
include "TEMP_Head.cfm";
</cfscript>
<form action="index.cfm" method="Post">
<input type="submit" name="LogOutUser" value="Log Out">
</form>
<cfscript>
include "TEMP_Foot.cfm";
}
</cfscript>
I expected this to run but I get the error message:
The start tag must have a matching end tag. An explicit end tag can be provided by adding </cfscript>. If the body of the tag is empty, you can use the shortcut <cfscript .../>.
Aucun commentaire:
Enregistrer un commentaire