Jump to content
xisto Community
ginginca

A Submitted Field Doesn't Match The Select List

Recommended Posts

I have a select list of cities which is about 10 cities.

 

I am getting a number of submissions (likely spams all from the same source) where the submitted value isn't from my list.

 

I was wondering how this is possible?

Share this post


Link to post
Share on other sites

It's really quite simple. When people submit information through your forms, they are not bound to the information you make possible because it is mere HTML and there is no checking as to the validity of the data. For example, you might have:

<form action="post.php" method=POST> <select name=hello><option value=NY>New York</option><option value=BF>Buffalo</option><option value=CY>Calgary</option></select><submit value="Submit"></form>

If someone were to duplicate that form info and post to the same page, they could change the select to a simple text box, where they could put anything they want. Of course, a more realistic way would be that they probably have a program that automatically posts random data with the names you provide to the page you provide.

Share this post


Link to post
Share on other sites

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

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.