PHP - Forms for sending data from json to Google Docs

In my country, some Sites are filtered, for example, docs.google.com , bbc.co.uk , facebook , etc.

I am creating a Form in google docs. When I insert an iframe form on my site, users from my country cannot view From .

For this reason, I get the original google form HTML and then paste it into my site. Now users from my country can view the form, but when they click Submit , the data form cannot be sent to Google documents, because the google docs URL is filtered! My server site is in the USA.

Can I get the data form from users and then send the form with the server (using the POST method) to Google documents?

For example, my form code:

 <form action="https://docs.google.com/forms/d/1B_p03NcbwnGRFAiAy0YoEPFckDELH1I-p71_2Kgq6_A/formResponse" method="POST" id="ss-form" target="_self" onsubmit=""> Your Name: <input type="text" name="entry.278240263" value="" class="ss-q-short" id="entry_278240263" dir="auto" aria-required="true" required="" title=""> <input type="submit" name="submit" value="Submit" class="button" id="ss-submit"> </form> 

I need to send the data form to https://docs.google.com/forms/d/1B_p03NcbwnGRFAiAy0YoEPFckDELH1I-p71_2Kgq6_A/formResponse from the Json server

+4
source share
1 answer

Sure. Take a look: https://wiki.base22.com/pages/viewpage.action?pageId=72942000 There is a section describing how to send data to google docs using ajax from javascript, but it should look like php

+4
source

Source: https://habr.com/ru/post/1497071/


All Articles