CGI variable Server_Name in $$HTMLHEAD?

I tried using the CGI variable on a page, and wanted the value of the $$HTMLHEAD field to be computed partially using the value…I need to see if the URL begins with www or not.

However, Server_Name returns a blank string.

Is this due to the order of things happening? Maybe when $$HTMLHEAD loads it does not know where it is at that point? I am not even sure I am asking this correctly.

Hopefully someone can provide some insight. Thanks.

  • Matt

Subject: CGI variable Server_Name in $$HTMLHEAD?

If works for me using 9.0.1

Make sure that you have a CFD field named server_name on the form above the $$HTMLHead field.