Jump to content
  • 0

Some Questions About Universal Module


SimWhite

Question

4 answers to this question

Recommended Posts

  • 0

And what about variables? Can I pre-define some and use it at POST requests?

 

Yes, the "Name" that you enter for the fields are passed in the POST request.

 

Label is the name that is displayed, like "Domain Name" and Name is the field name, which could be something like "domain_name". I believe this is a multi-dimensional array however, so you should capture it in your API file using something like.

$response = print_r($_POST, true);
file_put_contents("/path/to/file.txt", $response);

My PHP is rusty, but I think that would work. Make sure file.txt exists and is writable, and after the POST request is made, open the file and see what the array looks like and you'll know where to pull your data from.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...