perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luiz Fernando B. Ribeiro" <>
Subject Re: Passing arguments
Date Wed, 07 Apr 2004 16:17:24 GMT

Wednesday, April 7, 2004, 11:35:32 AM, você escreveu:

Sbc> Hi,
Sbc> I have a component, and inside component I am calling another component like this
Sbc> Component1:
Sbc> ------------------
Sbc> <a href="/component2?arg1=[+ $fdat{arg1} +];arg2=[+
Sbc> $fdat{arg2} +];arg3=[+ $fdat{arg3} +].....>SomeData</a>
Sbc> The problem is I have many arguments to pass and I have a
Sbc> long navigation path. Is there any way in embperl to send
Sbc> these arguments (or form data) of component1 to component2
Sbc> or reference them in component2 without 
Sbc> specifying them in the href tag. I appreciate your help.

You should use a form with POST method.
1. Put a <form method="POST" action="/component2" name="myForm"> somewhere in your
2. Put your arguments in hidden tags or use the magical [$ hidden $]
feature of Embperl to populate your form.
3. In your link put href="document.myForm.submit()".

Luiz Fernando B. Ribeiro
Engenho Soluções para a Internet

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message