no idea how to make users use a key for this

so i’m making a tool that i plan on selling its like an api so normally they do this website.com/file.php?tool=123
but i want it so its website.com/file.php?key=1923712937?tool=123

any idea on how to do this :slight_smile:

thanks in advance for helping me

[php]echo ‘myExample’;[/php]?

Strider gave you the answer, but, didn’t explain how it works.

You add arguments using the php?somevariable=somevalue …

But, if you need a second argument, you use an ampersand to add the second one.

Like: php?somvevariable=somevalue&someothervariable=someothervalue …

At the other end, these turn into “GETs” $variable2=$_GET[“someothervariable”];

Hope that explains it for you…

Sponsor our Newsletter | Privacy Policy | Terms of Service