CGI question: Getting form name to cgi script
Joel Hammer
Joel
Mon May 17 11:38:55 PDT 2004
I care about telling the script which form is submitted because I have
an html page with up to 36 identical forms, each form referencing a
separate object (an image). I am concocting a home brew image editing
GUI using opera, or any browser. So, each image is loaded on the page,
and certain editing functions can be done on each image using the image's
own form. I have to use CGI instead of javascript because this will
involve writing to a file which, I believe, is not possible in javascript.
The only things I can see to pass are values returned by certain input
objects, like select and text. Could you give me an example of a hidden
tag that gets passed when a form is submitted?
Thanks,
Joel
The Value of On Tue, Oct 15, 2002 at 10:54:18PM -0500, ronnie gauthier wrote:
> Why should the serve care what the form name is. Why should it need to
> know.
> If you need to get the form name to the script use a hidden tag.
>
> Trying to transfer a file requires the use of the correct
> enctype="multipart/form-data" in the <form> tag.
>
> If you are not using it look at CGI.pm, makes form use and html output
> as well as keeping state a bit easier.
> http://www.devshed.com/Server_Side/Perl/CGIpmBasics/page1.html
>
>
> On Tue, 15 Oct 2002 23:11:22 -0400
> Joel Hammer <Joel at HammersHome.com> wrote:
>
> >I must be stupid or tired but:
> >
> >Fooling around with CGI.
> >
> >I have created an html page with multiple forms on it. When I hit the
> >submit button, I don't see where the form name is being sent to the
> >web server. This makes it hard to process the forms properly. What am
> >I missing?
> >
> >Another question: Is there a way to submit data from your browser to a
> >cgi script without going through a form?
> >
> >Thanks,
> >Joel
> >
> >_______________________________________________
> >Linux-users mailing list
> >Linux-users at linux-sxs.org
> >Unsubscribe/Suspend/Etc ->
> >http://www.linux-sxs.org/mailman/listinfo/linux-users
> _______________________________________________
> Linux-users mailing list
> Linux-users at linux-sxs.org
> Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
More information about the Linux-users
mailing list