Re: PHP, HTML Forms & PostgreSQL

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Leif Jensen <leif(at)crysberg(dot)dk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PHP, HTML Forms & PostgreSQL
Date: 2002-04-08 11:06:23
Message-ID: 20020408210623.B2829@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Apr 08, 2002 at 12:52:48PM +0200, Leif Jensen wrote:
> I have looked in the HTML 4.0 recommendation, which talks about how
> form data is being handled, but it doesn't say anything about how PHP
> treats the result.

Hmm, I'm not sure then, but this is the way I've always known it to work.

> That's a possibility if you on forehand know the name(s) of checkboxes
> in your form. I was trying to make a general sql construction of an update
> statement independent of what might be in the form. !?

Well, I don't know if you can get the variables in a hash, like in perl.
Another thing that sometimes works is:

<input type=hidden name=box value=f>
<input type=checkbox name=box value=t>

When the tickbox is ticked, the browser will return two values named "box",
which *may* cancel out to give you your t/f combo.

Note this is extremely system specific and not guarenteed and not
recommended. But I have used it successfully on occasion.

--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Ignorance continues to thrive when intelligent people choose to do
> nothing. Speaking out against censorship and ignorance is the imperative
> of all intelligent people.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Leif Jensen 2002-04-08 11:10:52 Re: I18n & Pgaccess ( & psql)
Previous Message Tille, Andreas 2002-04-08 10:53:51 Re: I18n & Pgaccess ( & psql)