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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.