in reply to Re: form to cgi to cgi
in thread form to cgi to cgi

Sorry let me try this again at stage one i submit a form First name Last name ect. that posts to ord.cgi that works all find and dandy but now my father is holding me hostage until i can figure out how to catch the form in another cgi that sends it to ord.cgi but ive been looking for several days through manuals and cant find the necessary commands to have the first cgi catch the form? thanks for any help.

Replies are listed 'Best First'.
Re^3: form to cgi to cgi
by ww (Archbishop) on Jan 26, 2008 at 03:15 UTC
    Did your father specify that you send it back to the *SAME* script as receives the first (for further processing, to capture additional data, ???), as your parent post seems to say?

    Eminently doable, but if you're new to Perl, you may find it easier to write two scripts.

    Script 1, ord.cgi (according to one reading of your post) will need to be enhanced to catch First name Last Name, etc. and to pass those on to script 2, perhaps (if you're going to do this with an intermediate page requesting additional information) as elements -- possibly hidden -- of a new webpage to be created by script 2. Then, extend script 2 so as to catch both the previously captured elements -- the names, etc -- and to pass the aggregate on to either yet-another-new-page or yet another script.

    On the other hand, the final part of your question (after your assertion that you've been searching you say "cant find the necessary commands to have the first cgi catch the form" (sic) ) seems to say that you have not yet figured out how to have script 1 catch elements of your form... so I may be way off track on what you're looking for.

    So please. Think your problem through, and then, post again. And not to be snarky about it (yes, I make typos, misspellings and careless errors, too), please write using well-formed (eg, not run-on) sentences and paragraphs that structure your questions for the reader in a clear and coherent manner with correct spelling and punctuation.

    NB: FWIW, the parent of this node, and this node, were posted after my next one was posted.

Re^3: form to cgi to cgi
by olus (Curate) on Jan 26, 2008 at 03:19 UTC

    The first cgi catches the form if the form is submited to it.

    Ask your father what is the purpose of this exercise.