- Code: Select all
$tmp[] = '<a href="#' . $type . '" title="' . $type . '">' . $type . '</a>';
This way the base URL is implicitly the current page. The javascript is not longer needed, since the HTML does not trigger a page reload.
Moderator: emilise
$tmp[] = '<a href="#' . $type . '" title="' . $type . '">' . $type . '</a>';
array(73) { ["ALLUSERSPROFILE"]=> string(35) "C:\Documents and Settings\All Users" ["APP_POOL_ID"]=> string(14) "lfcdefault_003" ["CLASSPATH"]=> string(64) ";.;C:\CFUSIONMX7\classpath;C:\CFUSIONMX7\classpath\Verisign.jar " ["ClusterLog"]=> string(30) "C:\WINDOWS\Cluster\cluster.log" ["CommonProgramFiles"]=> string(29) "C:\Program Files\Common Files" ["COMPUTERNAME"]=> string(8) "SERVER19" ["ComSpec"]=> string(27) "C:\WINDOWS\system32\cmd.exe" ["CYGWIN"]=> string(3) "tty" ["FP_NO_HOST_CHECK"]=> string(2) "NO" ["NUMBER_OF_PROCESSORS"]=> string(1) "2" ["OS"]=> string(10) "Windows_NT" ["Path"]=> string(234) "c:\program files\imagemagick-6.2.8-q16;C:\CFusionMX7\verity\k2\_nti40\bin;C:\LFCSoftware\Python\.;C:\LFCSoftware\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ZipGenius 5c:\Program Files\Aspell\bin" ["PATHEXT"]=> string(67) ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.pyo;.pyc;.pyw;.py" ["PFPRO_CERT_PATH"]=> string(40) "E:\web\public_html\hcmg\PayFlowSDK\certs" ["PROCESSOR_ARCHITECTURE"]=> string(3) "x86" ["PROCESSOR_IDENTIFIER"]=> string(46) "x86 Family 15 Model 4 Stepping 4, GenuineIntel" ["PROCESSOR_LEVEL"]=> string(2) "15" ["PROCESSOR_REVISION"]=> string(4) "0404" ["ProgramFiles"]=> string(16) "C:\Program Files" ["SystemDrive"]=> string(2) "C:" ["SystemRoot"]=> string(10) "C:\WINDOWS" ["TEMP"]=> string(15) "C:\WINDOWS\TEMP" ["TMP"]=> string(15) "C:\WINDOWS\TEMP" ["USERPROFILE"]=> string(38) "C:\Documents and Settings\Default User" ["VERITY_CFG"]=> string(41) "C:\CFusionMX7\verity\k2\common\verity.cfg" ["windir"]=> string(10) "C:\WINDOWS" ["HTTP_CONNECTION"]=> string(10) "keep-alive" ["HTTP_CONTENT_LENGTH"]=> string(1) "0" ["HTTP_ACCEPT"]=> string(99) "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" ["HTTP_ACCEPT_ENCODING"]=> string(13) "gzip, deflate" ["HTTP_ACCEPT_LANGUAGE"]=> string(5) "en-US" ["HTTP_COOKIE"]=> string(122) "phpbb3_6klec_k=; phpbb3_6klec_sid=ca5f86920dcf85ed251804e48dfd483c; phpbb3_6klec_u=2; PHPSESSID=aphqqkltasgng7bq1t4irprq51" ["HTTP_HOST"]=> string(21) "guildofhardknocks.com" ["HTTP_IF_MODIFIED_SINCE"]=> string(29) "Tue, 30 Dec 2008 19:03:36 GMT" ["HTTP_REFERER"]=> string(36) "http://guildofhardknocks.com/roster/" ["HTTP_USER_AGENT"]=> string(118) "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1" ["HTTP_X_REWRITE_URL"]=> string(45) "/roster/index.php?p=guild-GlyphsDisplay&a=g:1" ["AUTH_TYPE"]=> string(0) "" ["AUTH_PASSWORD"]=> string(0) "" ["AUTH_USER"]=> string(0) "" ["CERT_COOKIE"]=> string(0) "" ["CERT_FLAGS"]=> string(0) "" ["CERT_ISSUER"]=> string(0) "" ["CERT_SERIALNUMBER"]=> string(0) "" ["CERT_SUBJECT"]=> string(0) "" ["CONTENT_LENGTH"]=> string(1) "0" ["CONTENT_TYPE"]=> string(0) "" ["GATEWAY_INTERFACE"]=> string(7) "CGI/1.1" ["HTTPS"]=> string(3) "off" ["HTTPS_KEYSIZE"]=> string(0) "" ["HTTPS_SECRETKEYSIZE"]=> string(0) "" ["HTTPS_SERVER_ISSUER"]=> string(0) "" ["HTTPS_SERVER_SUBJECT"]=> string(0) "" ["INSTANCE_ID"]=> string(5) "27179" ["LOCAL_ADDR"]=> string(14) "208.68.104.119" ["LOGON_USER"]=> string(0) "" ["PATH_TRANSLATED"]=> string(47) "e:\web\public_html\Djuwal\gohk\roster\index.php" ["QUERY_STRING"]=> string(27) "p=guild-GlyphsDisplay&a=g:1" ["REMOTE_ADDR"]=> string(12) "64.200.4.138" ["REMOTE_HOST"]=> string(12) "64.200.4.138" ["REMOTE_USER"]=> string(0) "" ["REQUEST_METHOD"]=> string(3) "GET" ["SCRIPT_NAME"]=> string(17) "/roster/index.php" ["SERVER_NAME"]=> string(21) "guildofhardknocks.com" ["SERVER_PORT"]=> string(2) "80" ["SERVER_PORT_SECURE"]=> string(1) "0" ["SERVER_PROTOCOL"]=> string(8) "HTTP/1.1" ["SERVER_SOFTWARE"]=> string(17) "Microsoft-IIS/6.0" ["UNMAPPED_REMOTE_USER"]=> string(0) "" ["ORIG_PATH_INFO"]=> string(17) "/roster/index.php" ["SCRIPT_FILENAME"]=> string(47) "e:\web\public_html\Djuwal\gohk\roster\index.php" ["PHP_SELF"]=> string(17) "/roster/index.php" ["REQUEST_TIME"]=> int(1230663912) }
Users browsing this forum: No registered users and 1 guest