How to embed javascript into php
-
I am trying to embed some javascript into a php document w/ no success. Basically I want a confirmation messagebox to pop up when I am attempting to delete a record from a database and I need the PHP code to executed depending on the response (OK or Cancel). Can someone give me a small template as to how to put the two pieces of code together? Thanks in advance.
-
I am trying to embed some javascript into a php document w/ no success. Basically I want a confirmation messagebox to pop up when I am attempting to delete a record from a database and I need the PHP code to executed depending on the response (OK or Cancel). Can someone give me a small template as to how to put the two pieces of code together? Thanks in advance.
try something like: "; else echo ""; // Normal no message ?> The word of the day is legs, let's go back to my house and spread the word ;P
-
I am trying to embed some javascript into a php document w/ no success. Basically I want a confirmation messagebox to pop up when I am attempting to delete a record from a database and I need the PHP code to executed depending on the response (OK or Cancel). Can someone give me a small template as to how to put the two pieces of code together? Thanks in advance.
-
Thanks