Sign in to follow this  

[web] Simple PHP filter not working

This topic is 3637 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying add this code to make sure an input variable is sent: if(!filter_has_var(INPUT_GET, "email")) { echo("Input type does not exist"); } but for some reason theres an error in this code and I can't figure out why it's not working.

Share this post


Link to post
Share on other sites
We are truly sorry that your code does not work, and we hope that you will be able to sort out the problem.

We are of course ready to help you if you wish, just post the details of your problem and we'll try something.

Share this post


Link to post
Share on other sites
I cant see anything wrong with that code, you should cutting that if statement out and see if your page still generates an error, perhaps it is actually an error somewhere else on the page.

Also, what does the error say?

Share this post


Link to post
Share on other sites
Thats the only code in my script. I guess I'll have to find another way to filter the input.

Share this post


Link to post
Share on other sites
The code looks fine. Does the code generate a PHP error? Or is the error that the code simply isn't doing what you think it should? Helpful to solving the problem:
- A description of what you're actually trying to accomplish
- The intended results versus the actual results of your code
- The actual page source
- Also, since you're working with a GET variable, the url used to access the script

You just haven't provided enough useful information describing the problem for anyone to do anything but take random guesses at possible solutions.

Share this post


Link to post
Share on other sites
Sorry for being very vague. I think I figure out the problem anyways.

Share this post


Link to post
Share on other sites

This topic is 3637 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this