MCV Zend Javascript Alert Upon Page advance

I'm not 100% sure how to ask this question;
Is there a way, to show a specific Javascript Alert, after a PHP From has been processed and a new header is set.

So, If I have a form:
<form action="action_page.php" method='POST">
FIRST NAME: <input type="text" name="first_name" id="first_name"/>
LAST NAME: <input type="text" name="last_name" id="last_name"/>
<input type="submit" name="submit" value="submit"

Open in new window

The the PHP is something like this:
$this->db->insert('names', $this->first_name);

//  THEN After a successful  insert we forward to a new page:  //

Open in new window

Once we have been forwarded to the new page "properties" I want to show a javascript alert that has a specific message.

Any hints, clues?
Who is Participating?
Ray PaseurConnect With a Mentor Commented:
Not sure I understand the question, but each PHP script will get run in response to a client request.  As each script is run, it will create a response.  The response usually takes the form of a web page, containing HTML, CSS, JavaScript, etc.  So you might include the JS alert() in the response.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.