pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: GH <grasshacker@over-yonder.net>
To: Rene-Raphael <rene_raphael@mac.com>
Cc: pgsql-php@postgresql.org
Subject: Re: button tag problem
Date: Wed, 25 Jul 2001 03:23:30 -0500
Message-ID: <20010725032330.E81931@over-yonder.net> (raw)
In-Reply-To: <200107210939.CAA08951@smtpout.mac.com>
References: <200107201848.LAA29710@smtpout.mac.com>
	<200107210939.CAA08951@smtpout.mac.com>

On Sat, Jul 21, 2001 at 11:39:35AM +0200, some SMTP stream spewed forth: 
> Hello,
>     Thanks for your emails. The BUTTON tag that i use in BOBDII is 
> different of the INPUT TYPE="SUBMIT" TAG because of the value send to 
> the server and the text display in the form are different.
> 
> Example:
> <input name="T_modify" type="submit" value="253">
> At my knowledge, you must put the value of the primary key in the value 
> field and it will be show in the HTML document display by your browser.
> 
> But with the BUTTON tag, the value of the primary key is HIDDEN and you 
> can show to the user what you want in HTML!
> 
> <BUTTON NAME="T_modify" VALUE="253">
> <div align="center"><B>Modify</B></div>
> </BUTTON>

<input type=image value="bling bling" src="img/dir/mkbutton.php">
You get the same functionality only it actually works.
You could quite simply hack out a PHP function using GD to generate the
images:
function mkbutton($text)
{
	gd_image_stuffage...
	blah blah
	header('Type: text/image'); /* or whatever */
	gd_send_image() or whatever
	return((bool) gd_stuff_was_successful)
}

I haven't been In The Code in a while, and the gd stuff is all quite well
documented so just go Look It Up. This method sholud work very well.

A simpler approach would be simply to post the primary key as a hidden
input.

People really ought to learn browsers before they go off trying to write 
for them.
Same goes for people writing browsers for html, heh.

> Looks cool but IE do not support the BUTTON tag that is a STANDARD HTML 
> 4 TAG DEFINE BY W3C(.org) !?!?!?

Yeah, so? What's your point?
Tried using CSS lately? How about any of the other "web specifications".
Get used to it. Mozilla is such a big slow dumb animal that most people
won't use it.

>   I suggest to you to visit this site, the W3C give a free demo browser 
> for Windows and Unix named AMAYA that support all HTML 4 tags. I try it 
> and it give a very ugly display but it works. I do not know another 100% 
> HTML 4 compatible browser exept from Icab(.de), a Mac alternative one 
> and i do not know why Microsoft do not support this tag...

I have used Amaya. As you say (in other words), it looks like shit.
You can hardly expect people to use it.
Opera, on the other hand, does a nice job of conforming and looks decent.

> Some of my friends who are not developper like very must this tag 
> because of you can generate very attractive HTML pages.
> 
> If nobody wants the BUTTON tag, i will use the old friend INPUT tag.
> 
>     Yours,
> 	Rene-Raphael Pautasso
> 
> 
> Le vendredi 20 juillet 2001, à 08:48, Rene-Raphael a écrit :
> 
> > All forms are in POST and most use the BUTTON tag but this HTML 4 tag 
> > is not support by Internet Explorer 5. We use iCab, a Macintosh browser 
> > but on PC, i tried Amaya, the w3c browser, ugly but it works.

Ugly, but it works. Yes, much like HTML. :)

gh
Yeah, ino ino, I am quite finished dragging this farther off topic.
-- 
What, no one sings along with Ricky Martin anymore?
My kid sister does (but then, she prefers pico to vi ...)
    -- Suresh Ramasubramanian, alt.sysadmin.recovery




view thread (3+ messages)  latest in thread

Message-ID: <20010725032330.E81931@over-yonder.net>
Permalink:  ../20010725032330.E81931@over-yonder.net/
Also on:    postgresql.org/message-id/20010725032330.E81931@over-yonder.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: grasshacker@over-yonder.net, rene_raphael@mac.com
  Subject: Re: button tag problem
  In-Reply-To: <20010725032330.E81931@over-yonder.net>
  References: <200107201848.LAA29710@smtpout.mac.com> <200107210939.CAA08951@smtpout.mac.com> <20010725032330.E81931@over-yonder.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox