I want to pass a couple of variables from one PHP page to another. I am not using a form. The variables are some messages that the target page will display if something goes
Use Sessions.
Page1:
session_start(); $_SESSION['message'] = "Some message"
Page2:
session_start(); var_dump($_SESSION['message']);