× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Good point Todd. Do you use UDFs for validation, or Stored Procedures?


On Wed, Feb 6, 2013 at 9:10 AM, Allen, Todd <Todd.Allen@xxxxxxxxxxxxxxxxx>wrote:

The drop-down list of available values works fine on a browser-based
application. If you are calling the same back-end process from a web
service then the input values cannot be limited like that. This may not be
a concern for you but something to consider. I always try to think of all
the ways a "back-end" process can be called. You generally don't want to
rely on "front-end" validation.

Thanks,
Todd

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Michael Ryan
Sent: Wednesday, February 06, 2013 8:57 AM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] Simple Validation using PHP

Good idea Paul, and one I'll implement. Still unclear on how to do
validation against information that's dynamic.

I want to be able to use an SQL UDF from PHP, Seems like I need to use the
same method as using an SQL Stored Procedure. If that's the case, the value
of a function seems to be less than expected.


On Tue, Feb 5, 2013 at 5:03 PM, Paul Holm <pholm@xxxxxxxxxxxxxxxxx> wrote:

Michael,

If you are validating against data on the i, couldn't you have a drop
down list of possible values? So if you are validating invoice type
or store, then you just allow drop down lists with the valid entries
that way the user can only select valid values?

If you list is large, you could use a type ahead approach as well.

THanks, Paul

On 2/5/2013 10:17 AM, Michael Ryan wrote:
What's a good way to do simple validation against data contained on
the i from a PHP program? I'd rather not invest in having to
prepare, param,
and
execute a stored procedure when all I need is a simple true or
false. I have functions (implemented as procedures in a service
program) that returns what I want, but I'm having trouble executing
that function from PHP. I don't have a problem with a stored
procedure that returns values
or
a stored procedure that returns a result set.

Is there something special/different about functions?

Thanks!


For More Than 80 Years—Delivering Solutions That Exceed Expectations.

This communication and any transmitted documents are intended to be
confidential. If there is a problem with this transmission, please contact
the sender. If the reader of this message is not the intended recipient, or
the employee or agent responsible to deliver it to the intended recipient,
you are hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.