Of course!! Thanks!!!
I love these lists :)
Sincerely,
Froilan C. Mendoza
Manager - Systems Management
Tridel Technologies, Inc.
http://www.tridel.net
On Tue, 11 Apr 2000, Michael J. Maravillo wrote:
> On Tue, Apr 11, 2000 at 04:37:36PM +0800, Froilan Mendoza wrote:
> >
> > Say for example, I have as output in my file1.pl:
> >
> > name1 data1 data2
> > name2 data3 data4
> > name3 data5 data6
> > ...
> > ...
> >
> > What should the <input type> be so that if I click on name1, for example,
> > it gets submitted to another program, file2.pl.
>
> name1 can be a button so that when it gets clicked, the form is
> submitted to file2.pl:
>
> <form name="myForm" action="file2.pl" method="post">
> <input type="submit" name="name1" value="name1"> data1 data2
> <input type="hidden" name="name1val" value="data1 data2">
> <input type="submit" name="name2" value="name2"> data3 data4
> <input type="hidden" name="name2val" value="data3 data4">
> <!-- ... -->
> </form>
>
> > (assuming file2.pl is a generic cgi prog that prints "Hello $name1!)
>
> You didn't mention what value should name1 be in file2.pl so I
> just assumed it's "data1 data2" (see hidden type above).
>
> Then in file2.pl:
> print "Hello $name1val";
>
> I hope I understood what you wanted to do... :)
>
> Mike
>
> -
> Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
> To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
>
-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]