i think u have mistaken using javascript
- Original Message -
From: "Onochie Anyanetu" <[EMAIL PROTECTED]>
To:
Sent: Friday, March 23, 2007 8:38 AM
Subject: [PHP-DB] Embedded php in javascript
> Hi, I am trying to create a pop up alert warning for deleting an ent
Chris is right, you also must understand that javascript runs
client-side, (In the browser),
and PHP is server-side (runs on the server).
You can generate javascript with PHP, but hardly the other way around ;).
--
Charles Morris
[EMAIL PROTECTED]
Network Administrator, Software Developer
Onochie Anyanetu wrote:
Hi, I am trying to create a pop up alert warning for deleting an entry
in my
database. What I have is:
? There is no undo.'))
{alert('Value deleted')}
else
{alert('no changes')}">
The problem here is that the embedded php is run regardless of if the user
clicks no, fo
Hi, I am trying to create a pop up alert warning for deleting an entry in my
database. What I have is:
? There is no undo.'))
{alert('Value deleted')}
else
{alert('no changes')}">
The problem here is that the embedded php is run regardless of if the user
clicks no, for example if i put php in