On 1 Jul 98, at 22:01, Chad Zimmerman wrote:
> I am closer to getting it fixed ... I replaced that script with a
> cleaner one. But, they used the default form button .. I am using an
> image .. I am getting an error now when pressing the go button ...
>
> Do this look right for the submit button:
>
> <A HREF="javascript:surfto(this.form)"><img></a>
Try this for the name of the form:
<FORM NAME="form">
It just so happens I was at the originator of that scripts site (odd). I have a nice
plan for javascript/cgi to browse websites, grab email addresses, make
comments and place all in database...but I digress.
I changed the name of the form from 'myform' to 'form' and the javascript worked
in my IE4.0. It is a shame that I still get so many errors when going to
javascript sites.
About using the submit button as an image. I recently did a job that turned into
a monster. The guy, as so very usual, specced a job and then began to
change. I should have stopped right then and sent him a bill for what had been
done and then asked for a new job based on the new requests; but I didn't. So
this thing grew.
Then they take it and start adding nice looking images in place of my buttons.
Gee...how does the cgi know what to do when you click a button? Anyone cgi
may respond to any number of forms and I usually use the value of the submit
button to tell the cgi what to do. Images as buttons pass the X-Y coordinates.
The workaround was to do this:
<input type="hidden" name="submit" value="Hit this guy over the head">
Just thought I would throw that out.
Peter
_________________________________________________________
Peter J. Schoenster [EMAIL PROTECTED]
Exercise Your Brain..Read a Book http://www.rede.com/
Free CGI Scripts and Applications
http://www.rede.com/samples/index.html
____________________________________________________________________
--------------------------------------------------------------------
Join The Web Consultants Association : Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------