newman445617 Posted July 27, 2009 Share Posted July 27, 2009 I am totally stuck here guys. so I came here to PHPFreaks, lol: function personal_panel($Profile) { global $ibforums, $std; $styles = array(); $d = dir('css'); while (($entry = $d->read()) !== false) { if (substr($entry, strlen($entry)-4) == '.css') $styles[] = substr($entry, 0, strlen($entry)-4); } $d->close(); // Only display the style selection box if there's more than one style available if (count($styles) == 1) echo '<input type="hidden" name="skinstyle" value="'.$styles[0].'" />'; else if (count($styles) > 1) { natsort($styles); echo "<select name=\"skinstyle\">"; while (list(, $temp) = @each($styles)) { if ($Profile['skinstyle'] == $temp) echo "\t\t\t\t\t\t\t\t".'<option value="'.$temp.'" selected="selected">'.str_replace('_', ' ', $temp).'</option>'."\n"; else echo "\t\t\t\t\t\t\t\t".'<option value="'.$temp.'">'.str_replace('_', ' ', $temp).'</option>'."\n"; } echo '</select>'; } return <<<EOF HTML Code goes here i can use {$variable php} [i need to bring that PHP CODE IN HERE TO SHOW ALL OF IT I Tried VARIABLES!] EOF; } The problem is I am trying to get That whole code in php ontop to be in here.. and show I Tried replace echo's with variables but that doesn't work.. it displays something like this: I'll take a screenshot for you. With a list of all .css in my css directory but I Can't get it in there. Thanks in advance! I need it to be in there so it goes along with my Skin settings and form that I removed that code because no point for you to see. Link to comment https://forums.phpfreaks.com/topic/167670-weird-function-but-it-works/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.