PHP implements links and background image settings between pages
P粉0098287882023-09-14 22:34:32
0
1
565
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?
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! :)