> there are some forms which execute a 
> javascript on their SUBMIT button and
> the on executing them from my script 
> it gives me an error that javascript is
> not supported like http, ftp or other
> protocols.

Is the word "javascript" anywhere in your perl script?
Do you mean the action= parameter in the opening
<form ...> tag starts with "javascript://" or similar?
Do you mean there is an onclick or similar part of
the <input type=submit ...> tag? Or something else? 

> how do I pass parameters to notigy a CGI script
> which is called on submittion of the form to submit
> it and generate the results.

You can probably quickly get this working as a single URL
without using perl, THEN code that URL into your perl.

Basically, you need an URL of the form:

    foo?arg1=val1&arg2=val2&...

    where foo is something like:

        http://www.domain.com/cgi-bin/qux.cgi

    and val1, val2 etc are "URL encoded", which means
    some characters are converted (eg space = %20).

If you are lucky, the form will do this for you. Try clicking
submit with some data. Does the URL change to an URL
of the form I just described? If so, that's probably the
URL you want.

If not, save the form to you local hard drive. Change the
method= part of the <form...> tag from method=post to
method=get. Save the edited form, view it in a browser
and submit the form. Do you get the URL you need?

If you do, now go ahead and deconstruct that URL into
the bits appropriate for the LWP user agent. (Or just
use the URL directly if you want, and parse out the
results some other way.)

If not, then you are going to have to get your particular
target form submission working using LWP user agent
modules without the benefit of first getting a plain URL
working. But, in that case, you should first get things
working for some web form that DOES allow method=
get, just so you go through the steps above and get the
hang of determining what is an arg to a cgi, and how
you can specify that using an LWP user agent. This
will involve looking inside the html to find <input...> tags
and similar. Once you have it working on that other web
form, then go ahead and attempt to get your original
target form working.

hth.

Reply via email to