Results 1 to 5 of 5

Thread: [Solved] Splitting Query String

Threaded View

  1. #1

    Thread Starter
    Fanatic Member brown monkey's Avatar
    Join Date
    Jun 2004
    Location
    Cebu
    Posts
    552

    Resolved [Solved] Splitting Query String

    Dunno if my question meets my needs here.

    I'm having problem with this code
    Code:
        $code=$_GET['code'];
        echo $code;
        $col=split('.',$code);
        if($col[1]=='vb'){
            $h->vb_file("source/".$code);
        }
        else if($col[1]=='cs'){
            $h->csharp_file("source/".$code);
        }
        else if($col[1]=='php'){
            highlight_file("source/".$code);
        }
    It echoes the $code (highlight.php) say I have showcode.php?code=highlight.php, but... it doesn't go through the if's. Am I missing something?
    Last edited by brown monkey; Oct 9th, 2004 at 03:01 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width