Jump to content

href an require_once


sbiese

Recommended Posts

require and include (the their "_once" cousins) bring the code from the specified file into the current file as if you had typed that code right there. If that code outputs anything then the output appears right there.

 

PHP is run on the server, and all of its output is sent to the browser. The browser then renders the (usually) HTML to show the page to the user. If you want that script to be run when the link is clicked, then the link needs to point to a URL that will execute that script.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.