Charles Letts wrote:
>
> Dear All,
>
> Quick technical question, from untechnical person.
>
> I would like to be able to produce a link for clicking through to a
> text only version of a page.
> On my site that means I want a page without headers and footers.
>
> I see the best way of doing this by putting some logic into my root
> style element saying something like:
>
> <? if ($HTTP_GET_VARS["text_only"]==1) { ?>
> <(content)>
> <? } else { ?>
> <[header]>
> <(content)>
> <[footer]>
<? } ?>
-- there are about half a dozen ways to do this in PHP :)
-- be carefull not to use the posted vars -> $text_only, it will
probably be phased out in PHP5
regards
alan
>
>
> That's stage 1, stage 2 would then be to stick a url somewhere on my
> relevant page with a link that passes the correct query string, eg
> like the following:
> www.mysite.com/host1/?text_only
>
> I think my logic is correct, but can someone help me out with the
> PHP/Midgard code to achieve the above.
>
> Many thanks
> CL
>
>
>
>
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at
> http://explorer.msn.com/intl.asp.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]