djw821 Posted March 25, 2008 Share Posted March 25, 2008 I have a standard html registation form page I send the form information to a seperate PHP page for checking and sending to the MySQL Database. Everything works great. If there is an error or a blank field a different page opens with the error message like That username is already in use. What I would like to do is instead of having a different page open I would like to send the error messages back to the html page so that it would appear on the same page as the form. I have no idea how to do this in PHP. Can anyone help me? Link to comment https://forums.phpfreaks.com/topic/97824-printing-to-a-seperate-html-page/ Share on other sites More sharing options...
soycharliente Posted March 25, 2008 Share Posted March 25, 2008 Have the form action be the same page, and include the code that processes the form on that same page. Link to comment https://forums.phpfreaks.com/topic/97824-printing-to-a-seperate-html-page/#findComment-500498 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.