cearlp Posted December 3, 2008 Share Posted December 3, 2008 I have a php script that creates an HTML form and then gets input from the submission of that form. Is it possible for the php script to display some sort of confirmation request and then receive input from the keyboard in response to the request before processing the data that was input via the form? I hope this question make sense? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
.josh Posted December 3, 2008 Share Posted December 3, 2008 no. But you can do that with javascript. Quote Link to comment Share on other sites More sharing options...
cearlp Posted December 4, 2008 Author Share Posted December 4, 2008 Thanks for the help Crayon Violent. I can get by be calling the script with onsubmit but can a javascript be called from anywhere in a php script? Quote Link to comment Share on other sites More sharing options...
Mark Baker Posted December 4, 2008 Share Posted December 4, 2008 Thanks for the help Crayon Violent. I can get by be calling the script with onsubmit but can a javascript be called from anywhere in a php script?Javascript isn't called from the php script. It's called from the HTML when it's rendered by the browser. And javascript can be triggered by almost any event within the browser (loading the HTML, pressing a key, moving the mouse, etc) Quote Link to comment Share on other sites More sharing options...
Adam Posted December 4, 2008 Share Posted December 4, 2008 You can also use 'AJAX' to call a PHP script .. Adam Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.