I have this form
<form action="<?php echo $response ?>?nexturl=<?php echo $nexturl ?>"
method="post" enctype="multipart/form-data" onsubmit="return saveFile(); ">
<input id = "file" name="file" type="file" style="border:none;"/>
I would like to do something like this:
return $action = saveFile();
I want to store the return value of saveFile() Which is a JavaScript code that returns a boolean into a PHP variable. How can I do this?