Hi,
This is a really twisted one, but any help would be greatly appreciated!!!
Ok, heres what I'm trying to do...
I have a select drop down box on page 1. The code is as follows:
<SELECT NAME ="headings">
<OPTION VALUE="">Select your heading size
<OPTION VALUE="<H1>"><<H1>H1>
The "Value" is what I want passed as a variable and the "<<H>H1> displays the tag as "<H1>" (with the angle brackets in the drop down box).
Ok, on the Action page, I want to use these variables as an opening and closing tag for H1.
It works when I open the Tag but it doesn't work when I close the Tag i.e. the rest of the document is formated as H1
This is the code to open and close the tag:
#Headings# <font Face="#Fonts#" COLOR="#Colours#"> #heading# </font> /#Headings#
I know that the variable is used as a generic tag and so Putting the "/" before the Variable is not correct as this is outside the Angle brackets, but I can't put it inside either coz then its not recognised as a variable!
I cant even use CFSET coz I cant Set a Sariable that begins with "/".
I guess one way is to make this available in the the select box also but I dont want to go down that route coz this will be user driven and makes things messy..
Does any1 have any ideas????
Regards
Sam
This is a really twisted one, but any help would be greatly appreciated!!!
Ok, heres what I'm trying to do...
I have a select drop down box on page 1. The code is as follows:
<SELECT NAME ="headings">
<OPTION VALUE="">Select your heading size
<OPTION VALUE="<H1>"><<H1>H1>
The "Value" is what I want passed as a variable and the "<<H>H1> displays the tag as "<H1>" (with the angle brackets in the drop down box).
Ok, on the Action page, I want to use these variables as an opening and closing tag for H1.
It works when I open the Tag but it doesn't work when I close the Tag i.e. the rest of the document is formated as H1
This is the code to open and close the tag:
#Headings# <font Face="#Fonts#" COLOR="#Colours#"> #heading# </font> /#Headings#
I know that the variable is used as a generic tag and so Putting the "/" before the Variable is not correct as this is outside the Angle brackets, but I can't put it inside either coz then its not recognised as a variable!
I cant even use CFSET coz I cant Set a Sariable that begins with "/".
I guess one way is to make this available in the the select box also but I dont want to go down that route coz this will be user driven and makes things messy..
Does any1 have any ideas????
Regards
Sam