Click to See Complete Forum and Search --> : 2 CGI scripts with 1 click..


hammerslane
11-18-2003, 03:07 AM
Hypothetical Situation
I have 1.aspx and 2.aspx.

1.aspx has a form, and its action when you press the submit button, is to process a CGI form (1.cgi), and then the cgi script goes to 2.aspx.

2.aspx displays the confirmation that the script(s) has been run.

Without editing the CGI script(s), is there a way that I could make sure both 1.cgi and 2.cgi are run from 1.aspx, and then 2.aspx is displayed? Apparently, it's not possible to run 2 scripts from one <form action=> tag...

Any suggestions are more than welcome.

96turnerri
11-18-2003, 03:32 AM
as far as i know this is not possible, unless you combine the two CGI scripts to make one single script

NOTE:i do not consider myself a CGI expert ;)

hammerslane
11-18-2003, 03:35 AM
yea... it's a bummer. the only thing is, that i can't edit the CGI scripts, and i can't merge them. from what it looks like, there is no way to do what i want.

edit: could i load 2.cgi in the <body load=> of 2.aspx? would the results from the submitted form carry through to 2.aspx?

thanks 96turnerri

96turnerri
11-18-2003, 03:42 AM
hm im not to sure on that ill have a look into it, try to stick clear of putting things in the <BODY> :cool:

hammerslane
11-18-2003, 03:45 AM
Originally posted by 96turnerri
hm im not to sure on that ill have a look into it, try to stick clear of putting things in the <BODY> :cool: why is that? i don't usually use it, i just know that it can be used..

96turnerri
11-18-2003, 05:18 AM
i read it somewhere on the w3 site somewhere in the html rules or something like that, try validating a site which has say

<body onLoad="boo()" onUnLoad="ha()">

96

pyro
11-18-2003, 07:45 AM
Originally posted by 96turnerri
try validating a site which has say

<body onLoad="boo()" onUnLoad="ha()">Yeah, it will work fine in HTML 4.01. And, it will also work fine in XHTML as soon as you make your attribute names (http://www.w3.org/TR/xhtml1/#h-4.2) lowercase:

<body onload="boo()" onunload="ha()">

96turnerri
11-18-2003, 09:09 AM
ah that be why it wouldnt validate lol, i had to try figure a way round that problem, oops o well done now lol