|
Posted by Marnok.com on 07/03/07 16:08
"Neredbojias" <neredbojias@gmail.com> wrote in message
news:Xns99624BAFE5639nanopandaneredbojias@198.186.190.161...
> On Tue, 03 Jul 2007 14:39:30 GMT Marnok.com scribed:
>
>>>> I had a form, with multiple image input types. My html
>>>> <input name="sign" type=image src="1.jpg" value="1" >
>>>> <input name="sign" type=image src="2.jpg" value="2" >
>>>> ..etc
>>>> worked fine in Firefox, but Internet Explorer won't do it. It doesn't
>>>> send the values.
>>>> In fact it doesn't seem to send anything from image type form
>>>> elements, unless I am missing something. I tried renaming the images
>>>> so they were sign1, sign2, etc but nothing - when I use PHP to echo
>>>> the value of $_POST['sign1'] I see a value in Firefox for the image I
>>>> have clicked, but nothing in IE. It just reloads the page.
>>>>
>>>> My googling has found others who have had similar problems, bit no
>>>> real solution - can anyone help me out here?
>>>
>>> You're naming 2 elements the same name. I think ie is right.
>>>
>>> --
>>> Neredbojias
>>
>> In the first case yes, but as I say then I gave each individual names
>> (sign1, sign2 etc) and I am getting no usable value.
>
> Ya know, that's twice in a month I've misread a post and gave an
> inappropriate answer. The reason, I believe, is that I focus on the bit
> of included markup or significant few lines and tend to miss the more
> embedded stuff.
>
> It may not be your fault that I can't read, but it does show the benefit
> of a url, particularly one exclusively delineating the problem. Yes,
> it's a form, but a mockup could still be made with the script included as
> text on the page. Hell, half the time I've been stuck and starting
> preparing a "question", I've found the answer in the very process.
>
> Now, after all that, it's surely related to your form markup, not the
> script.
>
> --
> Neredbojias
>
Hi
I've created a simple cut-down test:
http://www.marnok.com/test/test.php
What I see in Firefox, I click an image, and a "1" is displayed in the echo
related to that image.
When I try the same in Internet Explorer, I get nothing.
I'd appreciate any advice on what I am doing wrong here.
Navigation:
[Reply to this message]
|