Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18773
| From | Stefan Weiss <krewecherl@gmail.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: How to submit a form with two actions? |
| Date | 2013-03-08 13:18 +0100 |
| Organization | albasani.net |
| Message-ID | <khcku1$264$1@news.albasani.net> (permalink) |
| References | (6 earlier) <8ca39b18-36ed-43f4-b196-922a8344de4b@googlegroups.com> <khbgf5$6io$1@news.albasani.net> <bff73e7f-101e-4ccd-bdf7-70b01d09824e@googlegroups.com> <khblfe$hr8$1@news.albasani.net> <21d339f3-f3c7-4169-aae8-e49532e825c9@googlegroups.com> |
On 2013-03-08 04:37, justaguy wrote: > On Thursday, March 7, 2013 10:21:17 PM UTC-5, Stefan Weiss wrote: >> So call their URL from your script before you do your thing? >> >> - The HTML form is submitted to your URL >> - Your script >> - calls their process URL, passing along the form values >> - if it gets a success response >> - writes something to the database >> - handles errors as necessary > You confused me here. My script calling their form process script > (say, 111.222.333.444/formProcess.php) does not mean anything, that is, > my understanding is that my remote script won't be able to retrieve any > dynamically filled form data from their site. It's just HTTP. Your new script could pass along whatever was sent from the browser (form data, cookies) to the existing script. > On the other hand, for their script, the end of their script, if > they have a way to embed form data and send it long to my remote script with > or without href/http redirection that would suffice. Don't think it's a > cleaner solution? Possibly, but you said that was a WordPress script, and you didn't want to do PHP programming. To be honest, the whole setup looks overcomplicated. You're writing a web application with two separate backends, two server-side languages (PHP and whatever you're using), and two databases (one for WordPress and one for your client's orders)? I don't know enough about your project to advise, but if you're extending an existing WP installation, the path of least resistance might be writing a custom WP plugin. - stefan
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to submit a form with two actions? justaguy <lichunshen84@gmail.com> - 2013-03-07 13:18 -0800
Re: How to submit a form with two actions? Danny <dann90038@gmail.com> - 2013-03-07 14:40 -0800
Re: How to submit a form with two actions? justaguy <lichunshen84@gmail.com> - 2013-03-07 14:46 -0800
Re: How to submit a form with two actions? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-03-07 15:31 -0800
Re: How to submit a form with two actions? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-03-08 00:42 +0100
Re: How to submit a form with two actions? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-03-07 15:55 -0800
Re: How to submit a form with two actions? justaguy <lichunshen84@gmail.com> - 2013-03-07 16:43 -0800
Re: How to submit a form with two actions? Stefan Weiss <krewecherl@gmail.com> - 2013-03-08 02:55 +0100
Re: How to submit a form with two actions? justaguy <lichunshen84@gmail.com> - 2013-03-07 18:09 -0800
Re: How to submit a form with two actions? Stefan Weiss <krewecherl@gmail.com> - 2013-03-08 04:21 +0100
Re: How to submit a form with two actions? justaguy <lichunshen84@gmail.com> - 2013-03-07 19:37 -0800
Re: How to submit a form with two actions? Stefan Weiss <krewecherl@gmail.com> - 2013-03-08 13:18 +0100
Re: How to submit a form with two actions? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-08 20:51 +0100
Re: How to submit a form with two actions? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-03-07 23:52 +0100
Re: How to submit a form with two actions? justaguy <lichunshen84@gmail.com> - 2013-03-07 15:16 -0800
Re: How to submit a form with two actions? Danny <dann90038@gmail.com> - 2013-03-07 15:22 -0800
Re: How to submit a form with two actions? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-03-08 00:37 +0100
Re: How to submit a form with two actions? justaguy <lichunshen84@gmail.com> - 2013-03-07 16:44 -0800
Re: How to submit a form with two actions? Denis McMahon <denismfmcmahon@gmail.com> - 2013-03-09 05:09 +0000
Re: How to submit a form with two actions? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-08 20:50 +0100
csiph-web