search

Home  >  Q&A  >  body text

Please tell me how to implement different interfaces with different IDs

How to implement different interfaces with different IDs? For example, news.php?id=1 is contact information, news.php?id=2 is introduction. Please tell me the principle or give me the code. Do you need to use $_GET[ 'id']

Joker丶谦谦Joker丶谦谦1972 days ago1225

reply all(1)I'll reply

  • angryTom

    angryTom2019-08-05 17:46:00

    Write each page separately, then receive the value of id at the beginning of news.php to determine the value of id, and then use

    require_once() based on the value of id Method, referencing the corresponding page file.


    reply
    0
  • Cancelreply