By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,358 Members | 2,057 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,358 IT Pros & Developers. It's quick & easy.

ajax run 2 scripts?

P: n/a
Hello

I have the following code which works fine and runs the php script to
send data to a mysql db.

new Ajax.Updater(
'updateDiv',
'sendSpaResults.php',
{
asynchronous:true,
method:'post',
parameters: params
}
);

How can I also run formmail.cgi to send the data via email? The code
below is wrong.

new Ajax.Updater(
'updateDiv',
'sendSpaResults.php',
'../formmail/formmail.cgi',
{
asynchronous:true,
method:'post',
parameters: params
}
);

Cheers

Geoff
Nov 5 '08 #1
Share this Question
Share on Google+
6 Replies


P: n/a
On Nov 5, 9:22*am, Geoff Cox <g...@freeuk.notcomwrote:
Hello

I have the following code which works fine and runs the php script to
send data to a mysql db.

* *new Ajax.Updater(
* * * * 'updateDiv',
* * * * 'sendSpaResults.php',
* * * * {
* * * * * * asynchronous:true,
* * * * * * method:'post',
* * * * * * parameters: params
* * * * }
* * );

How can I also run formmail.cgi to send the data via email? The code
below is wrong.

* *new Ajax.Updater(
* * * * 'updateDiv',
* * * * 'sendSpaResults.php',
* * * * '../formmail/formmail.cgi',
* * * * {
* * * * * * asynchronous:true,
* * * * * * method:'post',
* * * * * * parameters: params
* * * * }
* * );

Cheers

Geoff
Two separate calls, or you can create new or modify existing response
script to do everything you want...
Nov 5 '08 #2

P: n/a
On Wed, 5 Nov 2008 03:24:49 -0800 (PST), GArlington
<ga********@tiscali.co.ukwrote:
>On Nov 5, 9:22*am, Geoff Cox <g...@freeuk.notcomwrote:
>Hello

I have the following code which works fine and runs the php script to
send data to a mysql db.

* *new Ajax.Updater(
* * * * 'updateDiv',
* * * * 'sendSpaResults.php',
* * * * {
* * * * * * asynchronous:true,
* * * * * * method:'post',
* * * * * * parameters: params
* * * * }
* * );

How can I also run formmail.cgi to send the data via email? The code
below is wrong.

* *new Ajax.Updater(
* * * * 'updateDiv',
* * * * 'sendSpaResults.php',
* * * * '../formmail/formmail.cgi',
* * * * {
* * * * * * asynchronous:true,
* * * * * * method:'post',
* * * * * * parameters: params
* * * * }
* * );

Cheers

Geoff

Two separate calls, or you can create new or modify existing response
script to do everything you want...
OK! How do I modify the existing response?

Thanks

Geoff
Nov 5 '08 #3

P: n/a
Geoff Cox schreef:
On Wed, 5 Nov 2008 03:24:49 -0800 (PST), GArlington
<ga********@tiscali.co.ukwrote:
>On Nov 5, 9:22 am, Geoff Cox <g...@freeuk.notcomwrote:
>>Hello

I have the following code which works fine and runs the php script to
send data to a mysql db.

new Ajax.Updater(
'updateDiv',
'sendSpaResults.php',
{
asynchronous:true,
method:'post',
parameters: params
}
);

How can I also run formmail.cgi to send the data via email? The code
below is wrong.

new Ajax.Updater(
'updateDiv',
'sendSpaResults.php',
'../formmail/formmail.cgi',
{
asynchronous:true,
method:'post',
parameters: params
}
);

Cheers

Geoff
Two separate calls, or you can create new or modify existing response
script to do everything you want...

OK! How do I modify the existing response?
He said: "response script".
In your case: sendSpaResults.php
Why not let sendSpaResults.php do the emailing?

Regards,
Erwin Moller
>
Thanks

Geoff

--
"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies. The first method is far more difficult."
-- C.A.R. Hoare
Nov 5 '08 #4

P: n/a
On Wed, 05 Nov 2008 13:41:22 +0100, Erwin Moller
<Si******************************************@spam yourself.comwrote:
>He said: "response script".
In your case: sendSpaResults.php
Why not let sendSpaResults.php do the emailing?
ah.. but can the php script call the formmail.cgi script which is a
Perl script?

Cheers

Geoff

>
Regards,
Erwin Moller
Nov 5 '08 #5

P: n/a
Geoff Cox meinte:
On Wed, 05 Nov 2008 13:41:22 +0100, Erwin Moller
<Si******************************************@spam yourself.comwrote:
>He said: "response script".
In your case: sendSpaResults.php
Why not let sendSpaResults.php do the emailing?

ah.. but can the php script call the formmail.cgi script which is a
Perl script?
Yes. But I suppose you switch to another NG then.

Gregor
Nov 5 '08 #6

P: n/a
On Nov 5, 4:22*am, Geoff Cox <g...@freeuk.notcomwrote:
Hello

I have the following code which works fine and runs the php script to
send data to a mysql db.
Not from where I'm sitting. Perhaps it requires a certain 100K+
library to work?
Nov 5 '08 #7

This discussion thread is closed

Replies have been disabled for this discussion.