Home:ALL Converter>my onsubmit cant get value in my form

my onsubmit cant get value in my form

Ask Time:2013-12-27T14:40:25         Author:RAN RAN

Json Formatter

I have 2 iframes.

Here is my function:

<script>
  function changeLink(link) {
    parent.iframe_a2.location=link;
  }
</script> 

I have this in my form:

<form name="search" method="POST" action="select1WSearch.php" 
target="iframe_a" onsubmit="changeLink('select2WSearch.php')">
<input type="text" name="find" /> 

and they have same code in next page like this:

$find = ($_POST['find']) ? $_POST['find'] : $_GET['find'];

The problem is in my action="select1WSearch.php" when submitted it CAN get value in textbox name="find" BUT my onsubmit="changeLink('select2WSearch.php')"> CANT get the value of that. Help please. Thanks in advance.

Author:RAN RAN,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/20796094/my-onsubmit-cant-get-value-in-my-form
gcochard :

Have you tried returning true in the function? By not returning a value, you return undefined, which is falsey (when casted to boolean it is false) and may signal to the browser that the onsubmit check should fail and thus not allow submission of the form.\n\nWhat browser(s) are you using to test this?",
2013-12-27T06:49:39
yy