solon Posted October 18, 2008 Share Posted October 18, 2008 Hey guys i have a form that is displayed within php like : (echo "<form..." and in the form i have a text box that i want to multiply its value with the values coming out of a specified filed from the table. how can i pass that value within the php function and to keep that value in the text box? Thanks in advance Quote Link to comment Share on other sites More sharing options...
genericnumber1 Posted October 18, 2008 Share Posted October 18, 2008 You could use ajax to retrieve the values, or just allow the normal post action of the form and echo the user's input between the textbox open/close tags (or value attribute if it's an input tag). Of course you'll need to make sure their input is indeed a number like is expected (see: is_numeric()) Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted November 2, 2008 Share Posted November 2, 2008 Why not just do the math client side with javascript? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.