Call a form input from another page

I have a form on a page that submits to a controller with a POST value. I have a situation where I would like to run that some code just as if the form were being submitted with the input POST value to the controller but run it from another page that is not using a form input. Is there a way to mimic the form?

I assume I can do it with a header and a GET variable, but I would rather stay away from that if possible.

Does that make sense to anyone other than me? :slight_smile:

Have you tried

$hi = 'Hello there';
$_POST['hi'] = $hi;


echo $_POST['hi'];

or is this not what you want?

Sounds like you could be looking for an AJAX solution. Perhaps take a look at jQuery.load()? You can send POST requests by passing in an object containing the information you want to send.