HTML Header & Footer Tags

I'm trying to create a front end to a Currency Converter website.  They suggest I can customer the Front and back end of there Conversion CGI program.  By front end, I mean use my own page colors and design.  The problem is, I'm not very familiar with the Header & Footer tags they sugesstion I use in the Form Post.

<INPUT TYPE="hidden" NAME="Header" VALUE="HTML_Header_string">

<INPUT TYPE="hidden" NAME="Footer" VALUE="HTML_Footer_string">

Is this simliar to the Include tag, where the Footer tag represents an HTML document?  The Currency site's URL is http://www.xe.net/currency/customize.htm.

Thanks.
LVL 3
d4jaj1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

julio011597Commented:
If i understand it correctly, this has nothing to do with any common protocol.

I mean, i guess "they" are just telling they have a CGI which accepts a couple of hidden fields to specify some HTML code to be put, respectively, as the header and as the footer of their result page.

So, basically, it seems that, while writing your front end form, you should add those hidden fields putting some personal HTML as the VALUE of them.

You could contact "them" and ask confirmation about this, and, also important, ask what you are allowed to put inside those VALUE attributes.
0
julio011597Commented:
Sorry, i must be spleeping... i've just seen i've given a url to look at.

Yes, it's how i guessed: just put need HTML into the VALUE attributes, being carefull to respect a few syntax requirements:

1. use square brackets instead of angle brackets, i.e. "[" and "]" instead of "<" and ">";
2. for double quotes, use the sequence \DQ and use \SQ for the single quote character.

So, say you want to show a banner on top of your customized page; the usual HTML code could be something like:

<IMG SRC="http://my.site/images/banner.jpg">

to put it into the VALUE attribute you should write:

<INPUT TYPE="hidden" NAME="Header"
  VALUE="[IMG SRC=\DQhttp://my.site/images/banner.jpg\DQ]">

I guess you now have it!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
d4jaj1Author Commented:
Thanks for the update, but now I'm kinda confused.  I have a website, complete with common backgrounds, button colors, etc. to give my users a familiar look throught the site.  Idealy I would like to display the results of their script "within" my existing site layout.  You answer is certainly correct, in that it answers my question, but I'll lose teh feel of my site if I can only link to graphics.  Can I show my page background behind the results and/or several pictures?
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

julio011597Commented:
Lets try to think of it this way (dispite of my English :)

the resulting web page is made up of three parts:

1. the header stuff you provide, or, if you dont, a default header provided by xe.net;
2. the actual results (i guess a table or such);
3. the footer stuff you provide, or, if you don't...

So, basically,  you do have great control on the look of the result page.
I.e., in my sample i showed how to put an image as header, but you could put many lines of HTML code there, maybe including a BODY tag with your own background, and so on.

I suggest you go with some tries to know what you are really allowed to do.
0
d4jaj1Author Commented:
I follow what you are saying, but I'm not sure if I'm writing teh tags correctly, thus I'm not sure I'm the feature isn't supported or if I'm just typing it wrong.  I can add

    <INPUT TYPE="hidden" NAME="Footer" VALUE="I'm trying to create a front...">      OR  <INPUT TYPE="hidden" NAME="Header"
  VALUE="[IMG SRC=\DQhttp://my.site/images/banner.jpg\DQ]">

and an Image and Text appear at the top and bottom of the page.

I try;
    <INPUT TYPE="hidden" NAME="Header"
      VALUE="[<body bgcolor=\DQ#FF00FF\DQ> </body>]">
and
    <INPUT TYPE="hidden" NAME="Header"
      VALUE="[<body background=\DQborder.gif\DQ> </body>]">

to set the page color or background.  If I'm typing this correctly, can I assume I can't do it?  If I'm not typing it correctly, what am I missing?

Thanks for all of your help.


0
julio011597Commented:
Hmm... i can see a few problems with it:

1. you have to use "[]" INSTEAD of "<>", i.e. write "[]" where you'd usually write "<>";

2. you would never write a document like this:
--//--
<HTML>
  <BODY bgcolor="#FF00FF">  </BODY>  <-- here is theHeader you are sending!!!
  ... other stuff here ...
  </BODY>
</HTML>
--//--
i.e., don't close the BODY tag: you are specifying a header!

3. you can put any HTML code you like as Header or Footer, except that i don't know if the BODY tag in particular is supported :(
To be sure, try this as Header and tell back what happens (posting the source of the result page would be of great help):

<INPUT TYPE="hidden" NAME="header"
  VALUE="[body bgcolor=\DQ#FF00FF\DQ]">

--

BTW, i'm glad to be of help, but this prolonged "support service" deserves some more points, doesn't it?
0
julio011597Commented:
NAME="header"

should be:

NAME="Header"
0
d4jaj1Author Commented:
Adjusted points to 50
0
d4jaj1Author Commented:
I fianlly figured out the syntax.  I was able to add a page background and additional graphics.  No problem with teh points, either.  Thanks again.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.