In the end, I opted not to use the angle brackets and insert them in manually myself on the action page. On the action page Ive got a series of IF statements to check if a an element of the form is blank etc, but the problem Im having is that on the first page I have one main form which, within it contains all the form elements, I pass this onto the next page to display (according the formatting the user has chosen) but for some reason each input variable is not according to the formatting instructions selected i.e. the second input has exactly the same formatting as the first...
Ive included the code snippet :
1st Page:
<FORM ACTION="DynamicViewsite.cfm?cfid=#cfid#&cftoken=#cftoken#" METHOD="POST" ENCTYPE="MultiPart/Form-Data">
<B> Heading </b><BR>
<INPUT TYPE="Text" NAME="Heading" VALUE="My First Home Page">
<BR>
<SELECT NAME ="headings">
<OPTION VALUE="">Select your heading size
<OPTION VALUE="H1"> H1
<OPTION VALUE="H2"> H2
<OPTION VALUE="H3"> H3
<OPTION VALUE="H4"> H4
<OPTION VALUE="H5"> H5
<OPTION VALUE="H6"> H6
<INPUT TYPE="submit" VALUE="process">
<INPUT TYPE="reset" VALUE="Clear">
</SELECT>
<BR>
<SELECT NAME ="Fonts">
<OPTION VALUE="Times New Roman">Times New Roman
<INPUT TYPE="submit" VALUE="process">
<INPUT TYPE="reset" VALUE="Clear">
</SELECT>
<BR>
<SELECT NAME ="Colours">
<OPTION VALUE="">Select type colour
<OPTION VALUE="Cyan">Cyan
<INPUT TYPE="submit" VALUE="process">
<INPUT TYPE="reset" VALUE="Clear">
<BR>
<!--- End Of HEADING Input --->
<!--- Start of SECTION1 HEADING1 Input --->
<B> Heading for section 1 </b><BR>
<INPUT TYPE="Text" NAME="Section1Heading1" VALUE="Heading for first Paragraph">
<SELECT NAME ="headings">
<OPTION VALUE="">Select your heading size
<OPTION VALUE="H1"> H1
<OPTION VALUE="H2"> H2
<OPTION VALUE="H3"> H3
<OPTION VALUE="H4"> H4
<OPTION VALUE="H5"> H5
<OPTION VALUE="H6"> H6
<INPUT TYPE="submit" VALUE="process">
<INPUT TYPE="reset" VALUE="Clear">
</SELECT>
<BR>
<SELECT NAME ="Fonts">
<OPTION VALUE="">Select type of Font
<OPTION VALUE="Times New Roman">Times New Roman
<INPUT TYPE="submit" VALUE="process">
<INPUT TYPE="reset" VALUE="Clear">
</SELECT>
<BR>
<SELECT NAME ="Colours">
<OPTION VALUE="">Select type colour
<OPTION VALUE="Cyan">Cyan
<INPUT TYPE="submit" VALUE="process">
<INPUT TYPE="reset" VALUE="Clear">
<BR>
<BR>
<P>
<!--- End of SECTION1 HEADING1 Input --->
And then on the Action page I Output the variables by
referencing its corresponding variable name from the first page:
<CFOUTPUT>
<CFIF #headings# is "" AND #Fonts# is "" AND #Colours# is "">
#Heading#
<CFELSEIF #Headings# IS NOT "" AND #Fonts# IS "" AND #Colours# IS "">
<#Headings#> #Heading# </#Headings#>
<CFELSEIF #Headings# IS "" AND #Fonts# IS NOT "" AND #Colours# IS "">
<font Face="#Fonts#"> #Heading# </Font>
<CFELSEIF #Headings# IS "" AND #Fonts# IS "" AND #Colours# IS NOT "">
<FONT COLOR="#Colours#"> #Heading# </Font>
<CFELSEIF #Headings# IS NOT "" AND #Fonts# IS NOT "" AND #Colours# IS "">
<#Headings#> <Font Face="#Fonts#"> #Heading# </font> </#Headings#>
<CFELSEIF #Headings# IS NOT "" AND #Fonts# IS "" AND #Colours# IS NOT "">
<#Headings#> <FONT COLOR="#Colours#"> #Heading# </Font> </#Headings#>
<CFELSEIF #Headings# IS "" AND #Fonts# IS NOT "" AND #Colours# IS NOT "">
<Font Face="#Fonts#"> <FONT COLOR="#Colours#"> #Heading# </Font> </Font>
<CFELSEIF #Headings# IS NOT "" AND #Fonts# IS NOT "" AND #Colours# IS NOT "">
<#Headings#> <Font Face="#Fonts#"> <FONT COLOR="#Colours#"> #Heading# </Font> </Font> </#Headings#>
</cfif>
</CFOUTPUT>
<BR>
<CFOUTPUT>
<CFIF #headings# is "" AND #Fonts# is "" AND #Colours# is "">
#Section1Heading1#
<CFELSEIF #Headings# IS NOT "" AND #Fonts# IS "" AND #Colours# IS "">
<#Headings#> #Section1Heading1# </#Headings#>
<CFELSEIF #Headings# IS "" AND #Fonts# IS NOT "" AND #Colours# IS "">
<font Face="#Fonts#"> #Section1Heading1# </Font>
<CFELSEIF #Headings# IS "" AND #Fonts# IS "" AND #Colours# IS NOT "">
<FONT COLOR="#Colours#"> #Section1Heading1# </Font>
<CFELSEIF #Headings# IS NOT "" AND #Fonts# IS NOT "" AND #Colours# IS "">
<#Headings#> <Font Face="#Fonts#"> #Section1Heading1# </font> </#Headings#>
<CFELSEIF #Headings# IS NOT "" AND #Fonts# IS "" AND #Colours# IS NOT "">
<#Headings#> <FONT COLOR="#Colours#"> #Section1Heading1# </Font> </#Headings#>
<CFELSEIF #Headings# IS "" AND #Fonts# IS NOT "" AND #Colours# IS NOT "">
<Font Face="#Fonts#"> <FONT COLOR="#Colours#"> #Section1Heading1# </Font> </Font>
<CFELSEIF #Headings# IS NOT "" AND #Fonts# IS NOT "" AND #Colours# IS NOT "">
<#Headings#> <Font Face="#Fonts#"> <FONT COLOR="#Colours#"> #Section1Heading1# </Font> </Font> </#Headings#>
</cfif>
</CFOUTPUT>
But as mentioned, a formatting choice for the variable #heading# is also being used for the variable #section1heading1#. The are not distinct?
Am I missing something here?
Thanx for simply taking the time to read through, let alone attempt a reply
Regards
Sam...