Hi, I want to get the parameter name behine "?".
For instance

index.php?dataName

Does anyone know how to get the string "dataName"?

Thank you for reading my post!

    You can access it using "$GET"

    $get = $_GET['dataName'];

    But with the example you posted, it will have no value. You give it a value like this:

    index.php?dataName=hello

      In fact, I don't know the name "dataName".
      It is a var name and it can be var1, var2, var3....etc
      I want to get the variable name
      NOT the value of "dataName".
      What can I do?

        Write a Reply...