Jump to content

Can a php script request input from the keyboard


cearlp

Recommended Posts

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.

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)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.