• Resolved nhoa88

    (@nhoa88)


    Hi,

    I’m trying to use a parameter within the URL:

    [insert_php]
    include("./myFolder/myFile.php?parameter1=myValue");
    [/insert_php]

    But it doesn’t work 🙁 If I remove the last part of the URL “?parameter=myValue” it works.

    Am I putting it wrong??

    Could anyone help me please, thank you!

    https://wordpress.org/plugins/insert-php/

Viewing 1 replies (of 1 total)
  • Thread Starter nhoa88

    (@nhoa88)

    I have put $_GET first and it keeps the value of that parameter.
    It works this way:

    [insert_php]
    $_GET['parameter1']='myValue';
    include("./myFolder/myFile.php");
    [/insert_php]

    🙂

Viewing 1 replies (of 1 total)

The topic ‘URL parameters’ is closed to new replies.