1

Do you see a problem with using the following convention for "views" (as in MVC).

webpage.php?past
script.php?all
page.php?about

For the PHP itself, I check for those values as such:

if(isset($_GET['past'])){
   ...
} else {
    ...
}

This works fine on all major browsers, so far.

jprofitt
  • 10,874
  • 4
  • 36
  • 46
AVProgrammer
  • 1,344
  • 2
  • 20
  • 40

1 Answers1

0

That syntax is quite valid in terms of URL spec: https://www.rfc-editor.org/rfc/rfc3986#section-3.4

Just ensure that any special characters are encoded as you'd have to do in any URL anyway

Community
  • 1
  • 1
James C
  • 14,047
  • 1
  • 34
  • 43