Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Problem with image submit button plz help!

Quote Reply
Problem with image submit button plz help!
Hi!

Say I have a cgi.

Say I use this cgi by submitting info from a text box using a form with a text box and a submit button.

Say that instead of the typical gray button I put a custom image used to submit, via the command <input type=image src=image.gif Height...>.

The problem comes when I click on the image button to submit the information. Two new parameters are added to the rest of cgi URL, so

http://mydomain.com/cgi-bin/myprogram.cgi

turns to

http://mydomain.com/cgi-bin/myprogram.cgi?x=10?y=3

making the script to return a 500 Error.

Anyway to solve this?
The problem does not happen if I press ENTER inside the text box.

Please help!!

Quote Reply
Re: Problem with image submit button plz help! In reply to
Don't know if this will solve your problem or not..

In Reply To:
<input type=image src=image.gif Height...>
You really ought to use quotation marks.

In Reply To:
http://mydomain.com/cgi-bin/myprogram.cgi?x=10?y=3
That should be (even if it isn't supposed to be there):
Code:
http://mydomain.com/cgi-bin/myprogram.cgi?x=10&y=3
note the '&' instead of '?' on the second parameter.

--Drew
Quote Reply
Re: Problem with image submit button plz help! In reply to
I already provided you advice in your duplicate Thread in the Links 2.0 Customization Forum. Mad

Regards,

Eliot Lee

Quote Reply
Re: Problem with image submit button plz help! In reply to
Hi!

Sorry for the confusion, but what I want is to AVOID INPUT TYPE=IMAGE to send the x,y stuff since it makes the CGI to return a 500 Server error.

Anyone?

Thanks!


Quote Reply
Re: Problem with image submit button plz help! In reply to
Use a button then!

That is the only tag I know of to use an image as a submit button!

From Paul Wilson.
http://www.audio-grabber.com
Music Directory
Quote Reply
Re: Problem with image submit button plz help! In reply to
Hi!

I guess I havent expressed myself clearly enough...

I NEED to use the INPUT TYPE=IMAGE but I DON'T need the x,y parameters sent by such tag to the CGI call...

Ok?