Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Inspekt and isset
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Julian  
View profile  
 More options Aug 2 2011, 10:32 am
From: Julian <julian.ch...@gmail.com>
Date: Tue, 2 Aug 2011 07:32:46 -0700 (PDT)
Local: Tues, Aug 2 2011 10:32 am
Subject: Inspekt and isset

Hello,

I'm starting to use the Inspekt validation library.

Having trouble when combining with !isset.

if (!isset($input->get->program))              

(btw, $input is a SuperCage)

Seems the IF statement is not evaluating.

I see I have to use "getRaw" to retrieve the variable. When I use that I get
a "Fatal error: Can't use method return value in write context"

if (!isset($input->get->getRaw('program')))

Anybody had this issue?

The page receives info thru GET and POST so I need to check which fields to
validate. Using isset seemed the way to go. Would appreciate any other
suggestions.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ed Finkler  
View profile  
 More options Aug 3 2011, 3:30 pm
From: Ed Finkler <c...@funkatron.com>
Date: Wed, 3 Aug 2011 15:30:55 -0400
Local: Wed, Aug 3 2011 3:30 pm
Subject: Re: [inspekt] Inspekt and isset
You can't use isset() with the return value of a method – it only works with variables.

Generally, you want to avoid using getRaw() -- the point of inspekt is to avoid directly handling raw input. The user docs may help you:

http://funkatron.com/inspekt/user_docs/

--  
Ed Finkler
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions Older topic »