English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a form with a checkbox in it, I want to pass whether its ticked or not using POST and PHP, to set it as a varable:

In the value bit of the tick box on the form I have:



And when the form is submitted I have this:

$mf = escape_data($_POST['map_flag']);

What am I doing wrong?

2007-08-16 11:00:39 · 3 answers · asked by jeff lemon 1 in Computers & Internet Programming & Design

3 answers

I don't think you have your logic set up correctly







if(isset($_POST['submit'])){

if(isset($_POST['map_flag'])){

$mf = escape_data($_POST['map_flag']); //add slashes if magic quotes isn't set;

}

}

?>

Larry Ullman's book is a good book, you made a good decision.

2007-08-16 11:27:19 · answer #1 · answered by Big D 4 · 0 1

Not only bad at MySQL, you are bad as well at PhP!

2007-08-16 22:14:58 · answer #2 · answered by just "JR" 7 · 0 2

beats me....

2007-08-16 11:04:00 · answer #3 · answered by science_of_chess 1 · 0 2

fedest.com, questions and answers