I need advice on some php codes

Discussion in 'PHP' started by pavelbarchuk, Jul 2, 2009.

  1. #1
    I will try to make this clear so you guys can understand.

    I made a php page. Example. website.com/digitalpoint.php

    Inside the page it shows this page, website.com/search.php?subject=digitalpoint, it works fine, but when you want to go to page 2, it adds the "?page=2subject&=digitalpoint" after website.com/digitalpoint.php

    Is there a way to fix that, a command code so it would be based off of / ?

    Any suggestions?
     
    pavelbarchuk, Jul 2, 2009 IP
  2. ajaymisrad

    ajaymisrad Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ajaymisrad, Jul 3, 2009 IP
  3. Beginn3R

    Beginn3R Peon

    Messages:
    120
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    its because you use
    $_POST or $_GET commands, am i right?
     
    Beginn3R, Jul 3, 2009 IP
  4. amuthavalli

    amuthavalli Peon

    Messages:
    110
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i agree this point. you used any predefined parameters like post or get
     
    amuthavalli, Jul 3, 2009 IP
  5. mdrobiul

    mdrobiul Peon

    Messages:
    186
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    there are two ways. use post method or use rewrite url method. study on url rewrite.
     
    mdrobiul, Jul 3, 2009 IP
  6. mdrobiul

    mdrobiul Peon

    Messages:
    186
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    sorry using post method is not the solution. url rewrite method is the solution for you.
     
    mdrobiul, Jul 3, 2009 IP