Took me some time !! but figured it out at last :-)
<?php if(preg_match("/$value/i",$searchData['postkort'][0], $matches)){ echo
'checked = "checked"'; } ?>
On 21 Mar 2017, at 15.48, Dale Bengston <dale.bengston@xxxxxxxxx> wrote:
As of PHP 5.3.0, eregi() has been deprecated. The PHP documentation suggests
using preg_match() now.
http://nl3.php.net/manual/en/function.preg-match.php
Dale
On Mar 21, 2017, 5:38 AM -0400, admin <lars.arler@xxxxxxxxxxxxxx>, wrote:
Hi and thanks in advance
Hav some errors after updating to FX 6.9
Deprecated: Function eregi() is deprecated in
/Library/WebServer/Documents/backoffice/Company_Com_Edit.phpon line 169
167 <?php foreach($vlResult['valueLists']['Ja_Nej'] as $key => $value){ ?>
168 <input type="radio" name="postkort[]" value="<?php echo $value; ?>"
169 <?php if(eregi($value,$searchData['postkort'][0])){ echo ' checked '; }
?>>
170 <?php echo $value; ?><?php } ?>
How should I go around rewrighting / solving this and forth coming issue….
any clue og text to understand the fix ??
Thanks
regards
Lars Luciano Arler