Jump to content
  • Advertisement
Sign in to follow this  
ed209

[web] Simple PHP filter not working

This topic is 3918 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!