Re: [phplib] Oohforms and submit buttons From: Paul Smith (paul <email protected>)
Date: 06/12/01

On Tue, Jun 12, 2001 at 02:34:38PM -0700, Ben Curtis wrote:
> You can check isset($GLOBALS[HTTP_POST_VARS]) or check whether that one text field is set.

The only limitation I see here is that if I want to use GET instead of
POST, and variables are passed in the URL from a referring page, then
the script will go right into the error checking. Using your suggestion,
though, I could include a hidden variable named "form_submit" or similar,
and check for that. Thanks.

> On Tue, Jun 12, 2001 at 03:51:01PM -0500, Paul Smith wrote:
> > If you're using oohforms, one way to set things up is to have the form
> > action be $PHPSELF, then check for the existence of the submit button
> > to do error checking. However, if there is only one <input type="text">
> > element in a form, and you hit return within that element to submit the
> > form, the submit button doesn't get passed to the action page. You have
> > to click it with the mouse.
> >
> > Is there a better way to do this? How can you check that a form has been
> > submitted without relying on the submit button?
> >
> > --
> > Paul Smith <paul <email protected>>
> > InfoTech Designer
> > Center for Neighborhood Technology
> > Chicago, Illinois USA
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> > For additional commands, e-mail: phplib-help <email protected>
>
> --
> People who love sausage and respect the law should never watch either one being made.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>

-- 
Paul Smith <paul <email protected>>
InfoTech Designer
Center for Neighborhood Technology
Chicago, Illinois USA

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>