I have a output tag in my html code , which is a mathematical calculation from two inputs
<form oninput="duyd.value = (+tot.value)-(+paid.value);"action="createinvoice.php" method="post" name="my-form">
<output name="tot" for="subtot lasdue" id="tot" ></output>
<input type="submit" name="Submit" value="Submit">
</form>
now i was to use this output data into a php variable . For example
$tot = $_POST['tot'];
But itsnt working . any solution ?
Got the solution -_-
Instead of output tag , just use input tag using same id and name . also check the for part
<input type="text" id="duyd" name="dued" for="tot paid">