if (isset($_POST['save_coach'])) {
$coach_education = stripinput
(trim($_POST['education'])); // Данные приходят $coach_how_many = stripinput
(trim($_POST['how_many'])); // Данные приходят $blah1 = $_POST['blah1']; // Данные не приходят
$blah2 = stripinput
(trim($_POST['blah2'])); // Данные не приходят .......
}
.....................
echo "<form name='addcoach' method='post' action=''>\n";
echo "<table cellpadding='0' cellspacing='0' width='90%' class='center'>\n<tr>\n";
echo "<td width='100' class='tbl'>".$locale['play_instrum']."\t <a href='".INFUSIONS."instrument/add_content.php'><img src='".BASEDIR."images/edit.png' title='".$locale['add_instr']."'/></a></td>\n";
echo "<td class='tbl'><input type='text' name='blah1' id='blah1' class='textbox'/></td>\n";
echo "</tr>\n<tr>\n";
echo "<td width='1%' class='tbl' style='white-space:nowrap'>".$locale['coach_instrum']."</td>\n";
echo "<td class='tbl'><input type='text' name='blah2' id='blah2' class='textbox'/>";
echo "</tr>\n<tr>\n";
echo "<td width='1%' class='tbl' style='white-space:nowrap'>".$locale['music_edu']."</td>\n";
echo "<td class='tbl'>";
$shool_name = $locale['edu_input'];
echo "<input type=\"text\" name='education' id=\"education\" style=\"color: #777; width:400;\" value=\"$shool_name\" onfocus=\"if (this.value == '$shool_name') {this.value = ''; this.style.color = '#000'; this.style.width='400';}\" onblur=\"if (this.value == '') {this.value = '$shool_name'; this.style.color = '#777'; this.style.width='400';}\" />";
echo "</td>\n";
echo "</tr>\n<tr>\n";
echo "<td width='1%' class='tbl' style='white-space:nowrap'>".$locale['students']."</td>\n";
echo "<td class='tbl'>";
echo " <select id='how_many' name='how_many'>
<option value='1'>".$locale['one']."</option>
<option value='2'>".$locale['two']."</option>
<option value='3'>".$locale['three']."</option>
<option value='4'>".$locale['four']."</option>
<option value='5'>".$locale['five']."</option>
</select>";
echo "</tr>\n<tr>\n";
echo "<td align='center' colspan='2' class='tbl'>\n";
echo "<input type='submit' value='".$locale['save']."' name='save_coach' class='button'/>
</td>\n";
echo "</tr>\n</table>\n";
echo " <script type='text/javascript'>
$(document).ready(function() {
$('#blah1, #blah2').tokenInput('".INCLUDES."fields/js/coach_instrument.php', {
theme: 'facebook'
});
});
</script>";
echo"</form>\n";
}