Page 1 of 1
Parse URL arguments
Posted: Tue Feb 28, 2023 9:09 pm
by Markup
Is there a way to parse URL arguements? i.e.
https://website/bob/f.php?a=1&b=2
I know I can add the arguments, but I have not found where to get the data from the arguments.
Re: Parse URL arguments
Posted: Wed Mar 01, 2023 7:11 am
by Pablo
This is not specific to WWB, but it will require JavaScript or PHP.
For example:
https://www.js-howto.com/how-to-parse-a ... avascript/
Re: Parse URL arguments
Posted: Wed Mar 01, 2023 12:54 pm
by Markup
I know how to do it in PHP. I was not aware I could inject PHP code directly into a project page. Being able to do that would solve a lot of things for me.
While I am here. Is there a method to allow PHP server side variable access/creation? I know how to do it in PHP. I was just wondering if the same mechanism allowing me to get the arguments/variables from the URL would allow me to set/get server side variables as well.
Re: Parse URL arguments
Posted: Wed Mar 01, 2023 2:15 pm
by Pablo
You can insert custom code via Page HTML or an HTML object.
https://www.wysiwygwebbuilder.com/add_html.html
Any script or code that works elsewhere will also work in WWB.
Note however that we cannot help you with programming related questions.
Re: Parse URL arguments
Posted: Thu Mar 02, 2023 7:17 pm
by Markup
Pablo wrote: Wed Mar 01, 2023 2:15 pm
You can insert custom code via Page HTML or an HTML object.
https://www.wysiwygwebbuilder.com/add_html.html
Any script or code that works elsewhere will also work in WWB.
Note however that we cannot help you with programming related questions.
Thank you for the information. That is going to make things much, much easier.
I am pretty well versed in PHP. For me, it is second only to C/C++ for getting the job done.