how to link to new html page

Have html data entry form for MySQL. The php is in-line in the html form. ( So, just <form> ) Need it to jump to new page URL after submit clicked and code gets executed between <? and ?>. Seems simple...
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.

confused, can u give me the code details?
So, what's the question? If I understand correctly, you want PHP-code executed when submitted and also a new page URL opened. Well, something like this maybe?

the form :

<form name="myForm" method="post" action="mypage.html">
  <input type="submit" name="mySubmit" value="Submit">

then after the form the PHP-code :

if ($mySubmit) {

So now, when pressed on the submit button the page mypage.html will be opened and the php-code will be executed.


You can also cause the browser to jump to a new page by entering this code.


Make sure that your php code doesn't try to print anything before this line of code.

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
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

erikfriend >> better post something like this as a comment, since this isn't THE answer and Dhalgren hasn't evaluated our comments yet, and also the question now is locked, so no other experts can help the questioner out directly. Hope you'll do this from now on.

"and also the question now is locked, so no other experts can help the questioner out directly. "

What? just anter you answer as a comment, you DO know that EE now has a "accept comment as answer" button these days?
Yes, I do know, but I hope Dhalgren knows too.
DhalgrenAuthor Commented:
I had it print a meta tag refresh from with the PHP. The other problem was that I had to do it inside of a frame.
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.