i am submitting data to different pages.
the problem is that depending on the user input the data has to be submitted to a different page. so i want to have this JS function analyze the input and then redirect the form to the proper page by returning the correct url, but until now i have not managed to do so. I know i could do it much easier in php, but due to php-JS communication and my lack of knowledge in that department this would be the easiest way if it could be made to work. thanks
to clarify further i want the js function to return a value such as "test.php" and i want the html form to use "test.php" url of the website to submit data to instead of the apparent js function name. sorry to be so blunt, but i need this solution and fast. thanks for the help.
so the user inputs a bunch of data into a form. since this is a study, there is a specific sequence of check boxes that is correct. when the user is check boxes i am recording the times at which each check box was marked and storing these time values in js arrays. if the user presses submit with the wrong sequence of check boxes i tell him that he is wrong and reset them. if he, however, selects the right sequence i now need to send the arrays over to the next phase of testing. this next phase or a separate page is decided by the data that he or she has inputed. i have this function return_direction() analyze the form data and if teh correct sequence was submitted return the url of the proper next page to submit the js arrays to. now i need the html form to stop treating the jf function name as the address and use that what the function returns as the url to submit data to. thanks for reading.