search

Home  >  Q&A  >  body text

PHP implements links and background image settings between pages

I need help linking two web pages together in php, I want my users to click a button and jump to the next page? Is there any relevant code that can achieve this function?

Also, how do I add a background image to my entire php website?

P粉009828788P粉009828788427 days ago527

reply all(1)I'll reply

  • P粉043470158

    P粉0434701582023-09-15 19:42:27

    To create a redirect in PHP, we use header("location:your_url"). I'll tell you to check out the PHP documentation on how to use it: https://www.php.net/manual/fr/function.header.php

    Then to integrate an image that "covers" the entire page, you can use CSS. You can use the background-image attribute on the body tag (how to use it, please refer to: https://developer.mozilla.org/fr/docs/Web/CSS/background-image)

    Good luck! :)

    reply
    0
  • Cancelreply