Jump to content

Simple question!


Toy

Recommended Posts

You have to filter your data once you receive it at the server end, simple example:

<?php
$valid_values = array('male', 'female');
if(in_array($_POST['data_to_validate'], $valid_values))
{
    echo "Your data is valid";
}
else
{
    echo "Your data is invalid";
}
?>

Link to comment
https://forums.phpfreaks.com/topic/227284-simple-question/#findComment-1172381
Share on other sites

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.