NYCPHP Meetup

NYPHP.org

[nycphp-talk] Help with Buttons and how I can only make pressable once a day

Ken Robinson kenrbnsn at rbnsn.com
Mon Jul 3 11:51:37 EDT 2006


At 04:37 AM 7/3/2006, michael wrote:
>On Mon, 3 Jul 2006 03:47:00 -0700 (PDT)
>Karl Brian Dano <karl_niarb at yahoo.com> wrote:
>
> > Hi everyone,
> >
> > Again, I need some help with PHP/MySQL. How do I assign a MySQL query
> > to a button and how can make the button only pressable (or be
> > available for "pressing") once a day?
> >
> > Help will be greatly appreciated.
>
>A button click in PHP (in the browser) does not send a signal like a
>button click event in a gui desktop application (vb, WXWindows, qt, gtk,
>tkinter, etc).  First you need an HTML form element and an input
>element.  Each will have characteristics that tell the web server what
>to do.  Here's some samples, spaced for easy reading:

You could also use Javascript to set up the button and use AJAX to 
start a PHP script that interacts with MySQL. You could use logic in 
your main PHP script to decide whether or not to display the button.

Ken 





More information about the talk mailing list