Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Passing results to a script after form element validation

by Anneq (Vicar)
on Apr 14, 2004 at 12:44 UTC ( #345025=note: print w/replies, xml ) Need Help??


in reply to Passing results to a script after form element validation

Not sure I understand what you are trying to do. But if I do, then perhaps you can put your scipt2.cgi into a sub inside a module, and then just call call the sub2, passing on the $co object.

For example:

sub process_form{
        if ( validate_form()){
                $result = MyModule->mysub2($co);
        }
}

HTH

Anne

  • Comment on Re: Passing results to a script after form element validation

Replies are listed 'Best First'.
Re: Re: Passing results to a script after form element validation
by rucker (Scribe) on Apr 14, 2004 at 16:34 UTC
    I agree you should do everything in the same cgi if possible. In some cases you can't do that, though, and maybe that's the case here. (For instance, you're using a 3rd party's cgi on their site.)

    Two ideas off the top of my head:

    1. do something funny with javascript
    2. use perl's LWP to do the post, grab the results (or part) and display to the user

    I recommend #2.

    Rucker

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://345025]
help
Chatterbox?
[ambrus]: Yaerox: good question, I don't know

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2016-12-06 10:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (101 votes). Check out past polls.