Jump to content

[SOLVED] Bypassing selects


jaymc

Recommended Posts

I have a profile system which allows members to input info and save it to the database for there profile

 

A few fields are SELECTS

 

From

Sexuality

Favourite Music

 

So for instance

 

From (England, Scotland, Wales, Ireland)

 

THat works fine, but what happens if someone makes a html document and injects code

 

<OPTION>HACK HAHA</OPTION>

 

Then posts it to my php that excutes and writes to the database

 

In essance they can bypass the select I have and input what ever data they want

 

Whats the best way around that, I was going to use a SET in the database structure but one of the selects has about 90 options

 

Ideas guys?

Link to comment
https://forums.phpfreaks.com/topic/52170-solved-bypassing-selects/
Share on other sites

Im not bothered about them entering HTML etc, I just dont want them to be able to add there own content

 

I want them to only be able to select the cotent I have decided on via the drop down list where as some people are creating forms locally and posting them to my php for execution

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.