hi there
how can i transfer form's datas from the one test.php file to the javascript opened window to print result
i tryed include('"test.php", but this didnt work
thank you
Let me see if I understand. You want to present a form on the browser, enter data into a form element, click submit, and have that data appear in a new window?
If so, I'd just add a new attribute to the form tag. Add "target=_top". That would present the output of the CGI processing the form in a new window.
If instead you want to have the data presented in a JavaScript dialog box, then have PHP create JavaScript on the return page.
Have your CGI script include the following at the of the return page:
<script language=JavaScript>
dialog (\"<variable containing form data\"
</script>
Perfection in engineering does not happen when there is nothing more to add. Rather it happens when there is nothing more to take away.
what is your opinion how can i transfer php form's submitted datas to the js pop-up window. i tryed include("request.php" in my new printform.php js window but it didnt make any sense. So if you can suggest me anything i would be thankful.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.