Help!! with php code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help!! with php code

    Any 1 knows how to make pages lyke page.php?page=1&id=1&act=yes

    #2
    In your form use the GET method.
    Visit my site

    Comment


      #3
      really, use get method and your forms have to take names like parameters at get-query...
      or...
      use links ;)
      Last edited by Shifty; 06.06.10, 16:26.

      Comment


        #4
        PHP Code:
        <?php
        $page 
        $_GET['page'];
        $id = (int) $_GET['id'];
        $act $_GET['act'];

        /// Use this block of if...else statements
        if($page == 'about')
        {
         echo 
        'about page';
        }
        elseif(
        $page == 'sh!t')
        {
         echo 
        'sh!t page lol';
        }
        else
        {
         echo 
        'default landing page';
        }

        // ...or use this block of switch...case statement
        switch($page)
        {
        case 
        'about':
        echo 
        'about page';
        break;
        case 
        'sh!t':
        echo 
        'sh!t page lmao';
        break;
        default:
        echo 
        'default landing page';
        break;
        }
        ?>
        that easy.

        Comment


          #5
          mobileGIGS, I thought that he wants another...)
          processing of get-query really so easy!

          Comment


            #6
            wot u on about?? O.o

            Comment


              #7
              I thought that he wants to learn how make this query

              Comment


                #8
                stil dont undastand bt its whateva tho

                Comment


                  #9
                  Thanks mobileGIGS, how will link it in d url

                  Comment

                  Working...
                  X