form1.php 744 Bytes
<?php
// form 1
/*
				variables.name = form1_mc.name_txt.text;
				variables.email = email;
				variables.city = form1_mc.city_txt.text;
				variables.libro = libro_chk;
				variables.question = form1_mc.note_txt.text;
*/

$name			= (isset($_POST['name']) && $_POST['name'] != "") ? 1 : 0;
$email			= (isset($_POST['email']) && $_POST['email'] != "") ? 1 : 0;
$city			= (isset($_POST['city']) && $_POST['city'] != "") ? 1 : 0;
$libro			= (isset($_POST['libro']) && $_POST['libro'] != "") ? 1 : 0;
$question		= (isset($_POST['question']) && $_POST['question'] != "") ? 1 : 0;

//die(json_encode($_POST));

if($email==1 && $question==1) {
	print "<xml><ErrorCode>0</ErrorCode></xml>";
} else {
	print "<xml>ErrorCode>1</ErrorCode></xml>";
}


?>