-1

I have some very simple code is executed via Sourcerer:

<form action="" method="GET">
    <input type="text" name="ALL">
    <input type="submit" value = "Search">
</form>
<?php
    echo "Hey<br>";
    print_r($_GET);
    echo $_GET["ALL"];
    $data = JFactory::getApplication()->input->get("ALL");
    echo $data;
?>

When I submit the form and the $_GET["ALL"] value is visible in the url, the value is not shown on the page.

Sometimes if I refresh, it will actually get seen and I am able to print it.

Once it is set it seems to be persistent and is still echo'ed even though I have no ?ALL=stuff in the url.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.