Re: Button id's - firefox and IE different ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Igor,
what are you doing here? You say I'm arguing to show how big I am, but
that's not true. I corrected your misleading tipps like using JSCRIPT
to have form essentials and using xhtml in an html context.
no reason to get personal and/or offending.

bye.


2009/4/2 Igor Escobar <titiolinkin@xxxxxxxxx>:
> I'm sorry, you is the master o/

> shame on you.

> Who you think you is? everybody is here to pass something for the
> others and learn something, everything i wrote its just  to help, if you are
> compete with others showing how much bigger you is, go to a championship or
> something.
>
> Have a nice day.
>
> Regards,
> Igor Escoar
> Systems Analyst & Interface Designer
>
> --
>
> Personal Blog
> ~ blog.igorescobar.com
> Online Portifolio
> ~ www.igorescobar.com
> Twitter
> ~ @igorescobar
>
>
>
>
>
> On Thu, Apr 2, 2009 at 11:01 AM, Jan G.B. <ro0ot.w00t@xxxxxxxxxxxxxx> wrote:
>>
>> 2009/4/2 Igor Escobar <titiolinkin@xxxxxxxxx>:
>> > If you don't want change your form, do some function in Javascript witch
>> > control the last button you clicked.
>> >
>>
>> Javascript is bad and you don't need it.
>>
>> >> <center><button type="submit" name="btid" value="1">Delete</center>
>> >> <center><button type="submit" name="btid" value="2">Delete</center>
>> >> <center><button type="submit" name="btid" value="3">Delete</center>
>> >
>> > <input type="hidden" name="last_buttom" id="" value="last_buttom" />
>> >
>> > I wanna make a advice to you learn more about HTML and Web Standards...
>>
>> I want give an advice to you: learn to make a difference out of HTML
>> and XHTML. It's not the same, and <input /> is XHTML.
>>
>> > Don't use button type... use "input" type...
>> >
>>
>> You forgot to mention *why* he should he use <input type="submit">!
>>
>> <button> is supported by all major browsers! So there's no need to use
>> <input> instead ...
>>
>> But having several <button> or <input> tags in one form element with
>> the same NAME="" value makes no sense! Only the last one in the code
>> will be submitted.
>> Also, the LABEL for the button should be written like that: <button
>> name="x1" value="0815">LABEL GOES HERE</button>
>>
>> http://www.w3schools.com/tags/tag_button.asp
>>
>>
>> Using <input> might be more future-oriented.. ;)
>>
>>
>>
>> > Your javascript (using jQuery) sems like this
>> >
>>
>> Installing and using "jquery" to have three buttons is overkill. not
>> more, not less!
>>
>>
>> byebye
>>
>> > $("input[name='btid']").click(function() {
>> > $('#last_buttom').attr('value', $(this).val());
>> > });
>> >
>> > And then you submit your form or something, the input "last_buttom" are
>> > with
>> > the value of the buttom you has clicked at last time.
>> >
>> > Regards,
>> > Igor Escobar
>> > systems analyst & interface designer
>> > www . igorescobar . com
>> >
>> >
>> >
>> > On Thu, Apr 2, 2009 at 8:29 AM, Phpster <phpster@xxxxxxxxx> wrote:
>> >
>> >> What about styling a link to look like a button with css? It won't be
>> >> an
>> >> exact match style wise but you can get close. I have done this
>> >> succesfully
>> >>
>> >> Bastien
>> >>
>> >> Sent from my iPod
>> >>
>> >>
>> >> On Apr 2, 2009, at 6:04, "Angus Mann" <angusmann@xxxxxxxxx> wrote:
>> >>
>> >>  Hi all.
>> >>>
>> >>> I want to have several delete buttons with just one form, and
>> >>> depending on
>> >>> which button is pressed, one of several items is deleted.
>> >>>
>> >>> So I need multiple submit buttons for 1 form, each displaying the same
>> >>> text "Delete" to the user, but each with a different "value" so the
>> >>> PHP
>> >>> script can tell them apart.
>> >>>
>> >>> I've used this code for the buttons...
>> >>> <center><button type="submit" name="btid" value="1">Delete</center>
>> >>> <center><button type="submit" name="btid" value="2">Delete</center>
>> >>> <center><button type="submit" name="btid" value="3">Delete</center>
>> >>>
>> >>> And it works just fine with firefox. But IE does not seem to pass the
>> >>> value back to the btid so when the script asks
>> >>> if $_POST['btid'] == "1" {
>> >>> }
>> >>>
>> >>> the value 1, 2, or 3 is not given back to PHP by IE. It is given back
>> >>> correctly by firefox and works fine.
>> >>>
>> >>> Any suggestions ?
>> >>>
>> >>> Thanks.
>> >>>
>> >>>
>> >> --
>> >> PHP General Mailing List (http://www.php.net/)
>> >> To unsubscribe, visit: http://www.php.net/unsub.php
>> >>
>> >>
>> >
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux