ImpAKT Forum :: nextensio list, with filter
This thread was displayed: 0 times
Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.
For more information about the affected products visit: www.interaktonline.com/Support/
troubadour
06-02-2007 15:07:16 GMT +2
|
Hello,
i would like to display records that are filtered with a list value.
here is the code :
<select name="tfi_listobjets_location7_obj_loyer" id="tfi_listobjets_location7_obj_loyer"> <option value="<=1000" <?php if (!(strcmp("<=1000", KT_escapeAttribute(@$_SESSION['tfi_listobjets_location7_obj_loyer'])))) {echo "SELECTED";} ?>>1000</option>
But the function strcmp doesn't accept the comparison symbols, like >=. It searches the exact string and not the value (for exemple, it searches the value "<=1000" and not "1000".)
Does someone know what to do? thank you very much !
|
|
|
JeffB
06-04-2007 11:26:07 GMT +2
|
strcmp is short for string compare, so it does what is says!
try a direct
if ($string >= 1000) {
e.g.
<option value="<=1000" <?php if( (KT_escapeAttribute(@$_SESSION['tfi_listobjets_location7_obj_loyer'])) <= 1000) {echo "SELECTED";} ?>>1000</option>
type of check.
Jeffb
|
|
|