code.ntalive.info -programming tips Blog

Multiple selection list Insertion 1

Multiple selection list Insertion

<select name=’selExpType[]’ id=’selExpType[]’ multiple=”multiple” size=’4′ ><option></option></select>$catIdA = $p[‘selExpType’]; $catIds = “”; if ( $catIdA ){ foreach ($catIdA as $catId) { $catIds.=”$catId,”; } } NB:-The output will be “$catIds} = the values are concatnated with...

For getting Server Address 0

For getting Server Address

$host  = $_SERVER[‘HTTP_HOST’]; $INSTALLATION_PATH = dirname($_SERVER[‘SCRIPT_NAME’]); $ROOT_PATH    =    “http://” . $host . $INSTALLATION_PATH;