How to accept request and extract parameters from request?

Hi Guys,

Need some help.
I want my site to receive some calls (POST or GET) and accept some parameters that’s been passed over as part of the call, then some code to extract the parameters and insert into database.

E.g. From a different caller, which calls:
https://abcd.wixsite.com/siteName/datainput?var1=10&var2=26&var3=abc

My site will somehow accept and extract those var1, var2, var3 values and add to database.

Any idea how to do that?

I read about “Router” which looks like what I need (but not 100% sure), however I can’t get it to work. I added a new router “datainput” and call it with the URL above, but keep getting 500 error.

Any help/hint would be appreciated.

Cheers

Thanks to this post: https://www.wix.com/code/home/forum/questions-answers/wixlocation-to-get-and-use-http-query
I got it working using wixlocation, issue closed. Thanks