[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] how to write if statement
Quoting grace (graced@21cn.com):
> how to write following code, it always display "SELECTED".
> [if cgi affiliate eq 'DY']SELECTED[/if]
>
That is fine. It should only show "SELECTED" if the value of
affiliate is DY. The quotes are not necessary, but they don't
hurt.
You can put that in a page "testpage", and then access the page
with the URL:
http://yourserver.domain/cgi-bin/foundation/testpage
It should not show SELECTED. If you then do
http://yourserver.domain/cgi-bin/foundation/testpage?affiliate=DY
it will show SELECTED.
--
3005 Nichols Rd., Hamilton, OH 45013
phone +1.513.523.7621 <mike@valuemedia.com>
Research is what I'm doing when I don't know what I'm doing.
-- Wernher Von Braun