Users Pricing

forum

home / developersection / forums / send javascript function variable with form

Send javascript function variable with form

Samuel Fernandes 2777 12 Mar 2013

Hi Everyone!

I need to send a variable returned from a JavaScript function with a form.

<form name="RegForm"  method="post" action="/validate_accountinfo.php" onsubmit="send()">
</form>


function send()
{
   var number = 5;
   return number;
}
In the validate_accountinfo.php I want to return the value of the function. How to do this?

Thanks for advance.


1 Answers