Answer the question
In order to leave comments, you need to log in
How to send json to server in php?
It is necessary from a WordPress site when submitting a form to send this form to the server, where 1c will receive the data.
Proger 1C wrote to me:
Send a post json request in the body here https://77.777.777.77:77777/LS/hs/requests/create/
I
also sent these terms:
basic
webaser
LSnap11
Is this a type of name for object properties?
How do I submit the name, phone number, comments, and URL of the page the form is being submitted from?
Here is the form
<input type="text" name="cname-your-name" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required text-field" aria-required="true" aria-invalid="false">
<input type="text" name="cphone-your-phone" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required text-field phone-mask" aria-required="true" aria-invalid="false">
<textarea name="ctext-your-text" cols="40" rows="10" class="wpcf7-form-control wpcf7-textarea text-field" aria-invalid="false"></textarea>
<button id="submit" type="submit" class="submit btn-blue">Отправить</button>
function send_info_to1c(){
echo "<script>alert(\"Отправляем данные в 1C\");</script>";
}
add_action( 'wpcf7_mail_sent', 'send_info_to1c');
Answer the question
In order to leave comments, you need to log in
Is it like a name for object properties?This is Basic Auth .
How do I sendFor a request like "php send http request" you will find a ton of instructions - choose the one that makes sense to you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question