Date: 11/21/99
- Next message: sam1600 <email protected>: "Re:[PHPLIB] Changes to oohform, was: Kristian: A couple questions please"
- Previous message: Ronny Hanssen: "[PHPLIB] About gc() in session.inc"
- Next in thread: Ulf Wendel: "Re: [PHPLIB] RE: Changes to oohform, was: Kristian: A couple questions please"
- Reply: Ulf Wendel: "Re: [PHPLIB] RE: Changes to oohform, was: Kristian: A couple questions please"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
------Original Message------
Bob Strouper wrote:
>>
>> Hello,
>>
>> Would you please post to the list a short description of
>> how to use the new functions "generate_php()" and/or
>> "php_validate()".
>
>Bob,
>
>I made these changes, let me explain them. Excuse me, the new >functions
>are'nt ducumented yet.
>
>
>$php_code = $ooh->php_validate();
>$sess->register(base64_decode($php_code));
Do you mean base64_encode()?
>if ($submit)
> if (""==$php_code)
> eval(base64_decode($php_code));
>}
>
>Now you'll have two new variables:
>
>- $error_msg
>- $error_flag
>
>$error_msg contains all error messages (like the javascript code: valid_e,
length_e...).
Is this an array of error messages from all bad form elements?
Because ,with the oohforms release that I am using ( 7.2 ),
the current php error generating code: ( function validate ())
returns only ONE error value ( it returns on the first one it
sees and then exits ) I did reccomend a small change in
function validate() in my post "oohforms & result from validate"
in which I modified function validate() to return an array
instead of a single value.
Ulf, thank you very much for your responce. After reading your
message I still have to take a good look at what the
differences are between your php error reporting code and the
existing php error reporting code that is allready in ohhforms
by way of ( ...validate()...self_validate()... ).
Thank You very much.
Bob
__________________________________________________
FREE Email for ALL! Sign up at http://www.mail.com
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: sam1600 <email protected>: "Re:[PHPLIB] Changes to oohform, was: Kristian: A couple questions please"
- Previous message: Ronny Hanssen: "[PHPLIB] About gc() in session.inc"
- Next in thread: Ulf Wendel: "Re: [PHPLIB] RE: Changes to oohform, was: Kristian: A couple questions please"
- Reply: Ulf Wendel: "Re: [PHPLIB] RE: Changes to oohform, was: Kristian: A couple questions please"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

