Jump to content

Make a Link Execute a Script?


chaseman

Recommended Posts

Seems to be a basic question, but I couldn't find an answer nor figure it out on my own.

 

Basically I have a script that takes out specific data out of the database, the script works on its own, now I just need a way to make the user execute it with a link or a button.

 

Example:

Category: [smileys] - [Category2] - [Category3] - etc.

 

As soon as the user clicks on [smileys] all data in the database which contains the word smileys in the category field gets selected and outputted as a list.

 

Again the script works, I just need to be able to execute it with a button.

 

If I understood it correctly I have to run the script by adding a

if (isset($_POST['Smileys'])) {

in front of the script.

 

But how do I build the connection with the text link?

Link to comment
https://forums.phpfreaks.com/topic/225264-make-a-link-execute-a-script/
Share on other sites

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.