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

2009-04-03 Thread Igor Escobar
ZZzz.

What what ? oh sorry, i fell in sleep.

Whatever, end of discussion.

Regards,
Igor Escoar
Systems Analyst & Interface Designer

--

Personal Blog
~ blog.igorescobar.com
Online Portifolio
~ www.igorescobar.com
Twitter
~ @igorescobar





On Fri, Apr 3, 2009 at 11:40 AM, Jan G.B.  wrote:

> Is it mandatory to annoy the whole list with your crap?
> If you want to keep on informing me or insulting me or feel free to
> send it directly to me. I'll add you to my killfile in no time.
> get a life
>
> 2009/4/3 Igor Escobar :
> > Better then READ is UNDERSTAND.
> >
> >> >> >> 2009/4/2 Igor Escobar :
> >> >> >> > If you don't want change your form, do some function in
> Javascript
> >> >> >> > witch
> >> >> >> > control the last button you clicked.
>
> > Regards,
> > Igor Escoar
> > Systems Analyst & Interface Designer
> >
>


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

2009-04-03 Thread Jan G.B.
Is it mandatory to annoy the whole list with your crap?
If you want to keep on informing me or insulting me or feel free to
send it directly to me. I'll add you to my killfile in no time.
get a life

2009/4/3 Igor Escobar :
> Better then READ is UNDERSTAND.
>
>> >> >> 2009/4/2 Igor Escobar :
>> >> >> > If you don't want change your form, do some function in Javascript
>> >> >> > witch
>> >> >> > control the last button you clicked.

> Regards,
> Igor Escoar
> Systems Analyst & Interface Designer
>

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



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

2009-04-03 Thread Igor Escobar
Better then READ is UNDERSTAND.

Regards,
Igor Escoar
Systems Analyst & Interface Designer

--

Personal Blog
~ blog.igorescobar.com
Online Portifolio
~ www.igorescobar.com
Twitter
~ @igorescobar





On Fri, Apr 3, 2009 at 11:30 AM, Jan G.B.  wrote:

> http://www.stimpco.com/carpix/arguingOnTheInternet.gif
>
> byebye
>
> 2009/4/3 Igor Escobar :
> > If you read my email you can see that i just give a "solution" to him and
> > not a TIP.
> >
> > "IF you DONT want change your form"
> >
> > But if i were doing, i be doing by the right way...can be sure that.
> >
> >
> > Regards,
> > Igor Escoar
> > Systems Analyst & Interface Designer
> >
> > --
> >
> > Personal Blog
> > ~ blog.igorescobar.com
> > Online Portifolio
> > ~ www.igorescobar.com
> > Twitter
> > ~ @igorescobar
> >
> >
> >
> >
> >
> > On Fri, Apr 3, 2009 at 6:27 AM, Jan G.B. 
> wrote:
> >>
> >> 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 :
> >> > 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. 
> >> > wrote:
> >> >>
> >> >> 2009/4/2 Igor Escobar :
> >> >> > 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.
> >> >>
> >> >> >>  value="1">Delete
> >> >> >>  value="2">Delete
> >> >> >>  value="3">Delete
> >> >> >
> >> >> >  />
> >> >> >
> >> >> > 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  is XHTML.
> >> >>
> >> >> > Don't use button type... use "input" type...
> >> >> >
> >> >>
> >> >> You forgot to mention *why* he should he use !
> >> >>
> >> >>  is supported by all major browsers! So there's no need to
> use
> >> >>  instead ...
> >> >>
> >> >> But having several  or  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:  >> >> name="x1" value="0815">LABEL GOES HERE
> >> >>
> >> >> http://www.w3schools.com/tags/tag_button.asp
> >> >>
> >> >>
> >> >> Using  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  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" 
> 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...
> >> >> >>>  value="1">Delete
> >> >> >>>  value="2">Delete
> >> >> >>>  value="3">Delete
> >> >> >>>
> >> >> >>> And it works just fine with firefox. But IE does not see

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

2009-04-03 Thread Jan G.B.
http://www.stimpco.com/carpix/arguingOnTheInternet.gif

byebye

2009/4/3 Igor Escobar :
> If you read my email you can see that i just give a "solution" to him and
> not a TIP.
>
> "IF you DONT want change your form"
>
> But if i were doing, i be doing by the right way...can be sure that.
>
>
> Regards,
> Igor Escoar
> Systems Analyst & Interface Designer
>
> --
>
> Personal Blog
> ~ blog.igorescobar.com
> Online Portifolio
> ~ www.igorescobar.com
> Twitter
> ~ @igorescobar
>
>
>
>
>
> On Fri, Apr 3, 2009 at 6:27 AM, Jan G.B.  wrote:
>>
>> 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 :
>> > 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. 
>> > wrote:
>> >>
>> >> 2009/4/2 Igor Escobar :
>> >> > 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.
>> >>
>> >> >> Delete
>> >> >> Delete
>> >> >> Delete
>> >> >
>> >> > 
>> >> >
>> >> > 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  is XHTML.
>> >>
>> >> > Don't use button type... use "input" type...
>> >> >
>> >>
>> >> You forgot to mention *why* he should he use !
>> >>
>> >>  is supported by all major browsers! So there's no need to use
>> >>  instead ...
>> >>
>> >> But having several  or  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: > >> name="x1" value="0815">LABEL GOES HERE
>> >>
>> >> http://www.w3schools.com/tags/tag_button.asp
>> >>
>> >>
>> >> Using  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  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"  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...
>> >> >>> Delete
>> >> >>> Delete
>> >> >>> Delete
>> >> >>>
>> >> >>> 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



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

2009-04-03 Thread Igor Escobar
If you read my email you can see that i just give a "solution" to him and
not a TIP.

"IF you DONT want change your form"

But if i were doing, i be doing by the right way...can be sure that.


Regards,
Igor Escoar
Systems Analyst & Interface Designer

--

Personal Blog
~ blog.igorescobar.com
Online Portifolio
~ www.igorescobar.com
Twitter
~ @igorescobar





On Fri, Apr 3, 2009 at 6:27 AM, Jan G.B.  wrote:

> 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 :
> > 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. 
> wrote:
> >>
> >> 2009/4/2 Igor Escobar :
> >> > 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.
> >>
> >> >> Delete
> >> >> Delete
> >> >> Delete
> >> >
> >> > 
> >> >
> >> > 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  is XHTML.
> >>
> >> > Don't use button type... use "input" type...
> >> >
> >>
> >> You forgot to mention *why* he should he use !
> >>
> >>  is supported by all major browsers! So there's no need to use
> >>  instead ...
> >>
> >> But having several  or  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:  >> name="x1" value="0815">LABEL GOES HERE
> >>
> >> http://www.w3schools.com/tags/tag_button.asp
> >>
> >>
> >> Using  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  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"  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...
> >> >>> Delete
> >> >>> Delete
> >> >>> Delete
> >> >>>
> >> >>> 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
> >> >>
> >> >>
> >> >
> >
> >
>


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

2009-04-03 Thread Jan G.B.
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 :
> 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.  wrote:
>>
>> 2009/4/2 Igor Escobar :
>> > 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.
>>
>> >> Delete
>> >> Delete
>> >> Delete
>> >
>> > 
>> >
>> > 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  is XHTML.
>>
>> > Don't use button type... use "input" type...
>> >
>>
>> You forgot to mention *why* he should he use !
>>
>>  is supported by all major browsers! So there's no need to use
>>  instead ...
>>
>> But having several  or  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: > name="x1" value="0815">LABEL GOES HERE
>>
>> http://www.w3schools.com/tags/tag_button.asp
>>
>>
>> Using  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  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"  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...
>> >>> Delete
>> >>> Delete
>> >>> Delete
>> >>>
>> >>> 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



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

2009-04-02 Thread Ashley Sheridan
On Thu, 2009-04-02 at 11:43 -0300, Igor Escobar wrote:
> ps 3: Why javascript is bad? you don't know develop a good interface
> with
> that? shame on you. 

You don't know how to develop a good interface *without* Javascript? ;)

Essentially, relying on script for something as fundamental as form
handling is the same as giving a big finger to all those blind users out
there, or anyone who turns of Javascript, or anyone behind a corporate
firewall that strips scripts, or... The list goes on. If you really
can't help it, you should always use Javascript only to supplement
usability, don't rely on it for system functionality.


Ash
www.ashleysheridan.co.uk


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



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

2009-04-02 Thread Igor Escobar
I'm sorry, you is the master o/

ps: I dont ask for them to install the jQuery, i just give an exemplo how he
can do something like that.
ps 2: I know the difference betwenn XHMTL and HTML i put the "/" there
becouse it's the force of the habit
ps 3: Why javascript is bad? you don't know develop a good interface with
that? shame on you.
ps 4: 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.  wrote:

> 2009/4/2 Igor Escobar :
> > 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.
>
> >> Delete
> >> Delete
> >> Delete
> >
> > 
> >
> > 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  is XHTML.
>
> > Don't use button type... use "input" type...
> >
>
> You forgot to mention *why* he should he use !
>
>  is supported by all major browsers! So there's no need to use
>  instead ...
>
> But having several  or  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:  name="x1" value="0815">LABEL GOES HERE
>
> http://www.w3schools.com/tags/tag_button.asp
>
>
> Using  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  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"  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...
> >>> Delete
> >>> Delete
> >>> Delete
> >>>
> >>> 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
> >>
> >>
> >
>


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

2009-04-02 Thread Jan G.B.
2009/4/2 Igor Escobar :
> 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.

>> Delete
>> Delete
>> Delete
>
> 
>
> 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  is XHTML.

> Don't use button type... use "input" type...
>

You forgot to mention *why* he should he use !

 is supported by all major browsers! So there's no need to use
 instead ...

But having several  or  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: LABEL GOES HERE

http://www.w3schools.com/tags/tag_button.asp


Using  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  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"  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...
>>> Delete
>>> Delete
>>> Delete
>>>
>>> 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



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

2009-04-02 Thread Igor Escobar
If you don't want change your form, do some function in Javascript witch
control the last button you clicked.

Delete
Delete
Delete



I wanna make a advice to you learn more about HTML and Web Standards...
Don't use button type... use "input" type...

Your javascript (using jQuery) sems like this

$("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  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"  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...
>> Delete
>> Delete
>> Delete
>>
>> 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
>
>


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

2009-04-02 Thread Phpster
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"  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...
Delete
Delete
Delete

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



RE: [PHP] Button id's - firefox and IE different ?

2009-04-02 Thread Leon du Plessis

Another suggestion would be to use the  tag as suggested by Richard, 

but rename the "name" value ie:





You can then use your PHP variable $_POST["btid1"], $_POST["btid2"] or
$_POST["btid3"], etc, to determine relevant actions.


-Original Message-
From: Angus Mann [mailto:angusm...@pobox.com] 
Sent: 02 April 2009 12:45 PM
To: Richard Heyes
Cc: php-general@lists.php.net
Subject: Re: [PHP] Button id's - firefox and IE different ?

I can do as you suggest below, but then the buttons are labelled "Delete" 
"Cancel" and "Save" to the user.

The essential point is that they all need to say "Delete". I know I can 
accomplish this by making multiple forms, each with its own button but for 
my purpose that's a pain is the ***.

IE returns the text displayed in the button regardless of the "btid" value. 
It seems to just ignore it.

Firefox returns the value assigned to "btid" as I intended regardless of the

text in the button that the user sees.



- Original Message - 
From: "Richard Heyes" 
To: "Angus Mann" 
Cc: 
Sent: Thursday, April 02, 2009 8:17 PM
Subject: Re: [PHP] Button id's - firefox and IE different ?


>> Any suggestions ?
>
> Try this:
>
> 
> 
> 
>
>
> And then you can check the value of $_POST['btid']. Oh and btw...
> ... seriously?
> That's so 9 years ago. ;-)
>
> -- 
> Richard Heyes
>
> HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
> http://www.rgraph.net (Updated March 28th)
>
> -- 
> 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


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



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

2009-04-02 Thread Angus Mann
I can do as you suggest below, but then the buttons are labelled "Delete" 
"Cancel" and "Save" to the user.


The essential point is that they all need to say "Delete". I know I can 
accomplish this by making multiple forms, each with its own button but for 
my purpose that's a pain is the ***.


IE returns the text displayed in the button regardless of the "btid" value. 
It seems to just ignore it.


Firefox returns the value assigned to "btid" as I intended regardless of the 
text in the button that the user sees.




- Original Message - 
From: "Richard Heyes" 

To: "Angus Mann" 
Cc: 
Sent: Thursday, April 02, 2009 8:17 PM
Subject: Re: [PHP] Button id's - firefox and IE different ?



Any suggestions ?


Try this:






And then you can check the value of $_POST['btid']. Oh and btw...
... seriously?
That's so 9 years ago. ;-)

--
Richard Heyes

HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.net (Updated March 28th)

--
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



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

2009-04-02 Thread Richard Heyes
> Any suggestions ?

Try this:






And then you can check the value of $_POST['btid']. Oh and btw...
... seriously?
That's so 9 years ago. ;-)

-- 
Richard Heyes

HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.net (Updated March 28th)

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