conditional-statements

Conditional Statements in PHP code Between HTML Code

Hi ! I'm having a bit of an issue by using Conditional Statements in PHP separated by HTML code. This is the type of code I'm trying to write. This is a profile page and it should only be seen by the user whose profile it is (i'm using session variables for checking that) : <?php if(check if user is logged in) ?> <display users profile...

XSLT - How to get IE consitional statements working in an XSTL

I've noticed IE conditional statements don't work in the transformed XML document. How do I get IE 6 and above to process them. Code as follows '<!--[if IE 6]><style type="text/css" media="all">@import "/css/ie6.css";</style>' Thanks. ...

C# Allow user to enter conditional rules

Hello. I write code in isolation, that is I work for myself. I need some advice on how you might implement the following functionality or if there are some tools that already exist to help make this task easier to accomplish. I have a scenario (C# application) in which I would like the user to be able to enter conditional rules which wi...

Jquery selected options in conditional statements

I'm trying to display some text in a div named "msg_box" for each selected option. It works but not live. I have to refresh to see the result. The js is.. $(function() { switch ($('#my_options :selected').val()) { case '1': $('.msg_box').html('You selected option one'); break; case '2': $('.msg_box').html('You selected option t...