Friends I’m working on a simple form that passes form data, variable (‘p’ for a phone number) and a hidden field, variable (‘i’ for a web callback ID) from, using a forms POST method through to wcb.php which is located in: /etc/schmooze. Both source and target destination are on the same private lan, but have their own, public-facing IP’s, with a sub-domain pointing to FREE PBX WAN address. Question is, I’m trying to POST, but I get a BLOCKED message when inspecting the network traffic.
So my question actually comes in TWO parts.
Is this the best method for getting together a custom form from a remote source and just use POST to interact with wcb.php
and
Why doesn’t FREEPBX accept and wcb.php accept my POST?
I am going to ask again. Where are the logs? Show use any changes you made. Show use the form as it is right now. We need to see things to tell you why it isn’t working.
Hey Tom, at this time, I’m simply trying to determine the best approach to using a form to pass on values to wcb.php (Web Callback) I have a number of websites where I’m using the generated html by the Web Callback feature to launch Web Callback dialog, where it asks for a phone number. Example: https://click2call.aosystemsgroup.com/wcb.php?i=3. So as you know, the “i” value passes on whatever misc. destination freepbx may be looking for. According to network debugging, it’s also passing on the “p” value (phone number input by the user)
I found the customized web callback form as provided by Sangoma here:
However, the “i” value passes on whatever is “hard coded” in the form.
I’m trying to figure out if my best approach is to simply have a form on each website that takes in a phone number value and the “i” value and pass that along to WCB.PHP using the POST method?
If I had some logs, I would send them. I’m asking as I believe I might run into a CORS error.
As I have said before you are passing variables in the $_GET global var. Anything passed in the query string will not be in the $_POST array. So i=3 is never seen in the post array.