2012-12-13, 10:29 AM
2012-12-13, 11:24 AM
This can be done using a simple javascript code;
Add the following code in <head> tag;
Make sure that the amount input box have the same amount "name" field, since it has been used in the amount's value in above code.
Add the following code in <head> tag;
<script type="text/javascript">
function validate_form()
{
allowed = true;
if(document.deposit_form.amount.value < 5)
{
alert("The minimum amount required is 5$ USD. Please go back and try again!");
allowed = false;
}
return allowed;
}
</script>
Now in form's tag add the following line;name="deposit_form" onsubmit="return validate_form();"
Make sure that the amount input box have the same amount "name" field, since it has been used in the amount's value in above code.
2012-12-13, 04:00 PM
^That'll get the job done, but using on* attributes is definitely primitive, and users can get around the limit just by disabling JS.
2012-12-13, 04:33 PM
(2012-12-13, 04:00 PM)CAwesome Wrote: [ -> ]^That'll get the job done, but using on* attributes is definitely primitive, and users can get around the limit just by disabling JS.
Really doesnt matter, but I still couldnt integrate this I contacted Yaldaram I sent him full source code of the page hope he can integrate it for me.
Didint get reply yet, any one please?