html5 - Send value with submit from output element -


i using output element in html show oninput calculations have put in workes - when submitting, input values sent - , not output value. how sent output value or oninput value?

<form action='upload.php' nmethod='post' enctype="multipart/form-data" oninput="price.value = (5 * product.value)"> <output type="number" id="totalprice" name="totalprice"></output> <input id='sendprice' type='submit' value='send'> </form> 

add hidden input field form contains data so:

<input type="hidden" name="oninput" value="--your oninput value--" /> 

Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -