Gossamer Forum
Home : Products : Gossamer Links : Discussions :

What is wrong with this syntax?

Quote Reply
What is wrong with this syntax?
What is wrong with this syntax?

<%if cmd eq 'entv'%>
<%include include_search.html%>
<%else%>
not here
<%endif%>

With this it goes to error about a syntax error.

If I just use...

<%if cmd eq 'entv'%>
<%include include_search.html%>
<%endif%>

then it only displays half the page before the command!

Unimpressed

--------------------------------
Privacy Software
Quote Reply
Re: [BLOOD] What is wrong with this syntax? In reply to
Is include_search.html correctly formatted?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] What is wrong with this syntax? In reply to
Yeah looks like that is the problem. Not sure where though but it is indeed making the include process fail.

--------------------------------
Privacy Software
Quote Reply
Re: [BLOOD] What is wrong with this syntax? In reply to
Maybe attach it? Could just be a missing <%endif%> or something. It happens a lot, trust me Tongue

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] What is wrong with this syntax? In reply to
No endif!

It’s a big page with lots of variables that’s why I missed it! Crazy

Cheers,

--------------------------------
Privacy Software
Quote Reply
Re: [BLOOD] What is wrong with this syntax? In reply to
Hi,

I had a similar problem. Missing %> or even <% tags will do it. The parser has a problem, and Alex had explained it to me awhile back, but said there was little that could be done about it at this time, for technical/performance reasons, not lack of time.

Do a quick count of your <% and %> tags. If they don't match, that is the problem.

You might be able to use one of the newer HTML editors to define those as opening and closing tags, and then see where they start to fall apart.

Just a suggestion :)


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.