i am trying to print the value of $ss. but it say 'qty' is undifine on line($ss = $_post['qty'];).
index.php
<?php
echo"
<form method='post' action='index.php'>
<input type='text' name='qty' />
<button type='submit' id='opener01' name='b1'>submit</button>
</form>";
echo"
<div id='dialog01' title='ccc'> ";
$ss = $_post['qty'];
echo"$s;
echo"
</div>";
?>
jquery.js
$( "#dialog01" ).dialog({
autoOpen: false,
modal: true,
buttons: {
"option1": function() {
$( this ).dialog( "close" );
},
"exit": function() {
$( this ).dialog( "close" );
}
}
});
$( "#opener01" ).click(function() {
$( "#dialog01" ).dialog( "open" );
return false;
});