jquery - Acquiring IP from which Google Form submission was sent -


this rather long wall of text not need read through all, main part of post below second horizontal line - not have read how did analyze issue :). in advance help!


i have webpage custom form sends submissions google spreadsheet (but original google form used of users). need acquire ips of users use custom form, although input ip should hidden.

my first idea ip via jquery , have found simple ajax call here @ stackoverflow this. wanted create form input hidden using css , ip acquired via ajax put there (using jquery) , submitted form. however, way went out not acceptable me, because if wanted spreadsheet receive ip input, additional form input field have remain in original google form - not want happen.

then thought custom form should send submission 2 places (the spreadsheet , custom php script located on server) @ same time (when user submits) found out single form can have single 'action'. didn not know if can done in other way.


finally, such idea came mind: in custom page, create second form - hidden , contain 2 inputs, 1 ip , second 1 copy of of first form's inputs (to let me identify owner of ip). submission sent server , processed php; compare submissions stored in spreadsheet , on server.

when user happily submit main custom form, jquery copy 1 of inputs hidden copy, user's ip , submit second form without knowledge of user.

  • here question: right way want to? or there simplier solution did not manage find? not 'it pro' , afraid missing something.

..if wanted spreadsheet receive ip input, additional form input field have remain in original google form...

this statement isn't true. if custom form writing responses same spreadsheet google form using, can add column spreadsheet, beside table area used google forms. "field" not part of google form, , left out of form summaries done forms service.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -