Hello,I wil make a urlfetch with multi $(query)
here a exampleindex.php?var1=$(query1)&var2=$(query2)&var3=$(query3)
i was new with scripting scripts for Nightbot
Why not just parse the entire user's query on your end? You can use $(querystring) to get a url-encoded string for that purpose.
Thanks night for answerbut how i can use that?when i useindex.php?test=$(querystring) is the echo from $test = $_GET['test']the same was index.php?test=$(query)
have you a small example with phpcode
The only difference between $(query) and $(querystring) is that querystring is url-encoded.
If you use index.php?test=$(querystring) You can use it in your code with $test = $_GET['test'];This will give anything the user types after the command.After that you can explode $test to get the different values.
$test = $_GET['test'];
If you want them seperately use index.php?a=$(1)&b=$(2).
Now i have make this for multi commands
index.php?msg=$(query)by send !test value1 value2
!test value1 value2
$msg = $_GET['msg'];
$exp = explode(' ',$msg,2);
$bmode = $exp['0'];
$bchar = $exp['1'];
$exp['0'] // is value1
$exp['1'] // is value2
This work perfeckt
Night why you have not say multi query is aviable i have see this hereand with $(1) & $(2) can i send the variables to my script
why have you not say what i can use the Argument command
That is because arguments are not safe for use in URLs. They do not get URL encoded when passed into the url, so the only correct way to parse user info is to take all of it or use a variable with a guaranteed safe response (ones that do not take user input).
oh ok is thisthe better way and safe?
As was stated in my initial response, you should only use the querystring variable.
i parse the complete query on my script and check for to umlauts
And why is the Custom-Api area for new Threads closed?
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.