millsy007 Posted April 22, 2009 Share Posted April 22, 2009 Hi I have a one page website, on the page I would like to send an email via a form that I have created, however all of the example php code that I find relys on running code and redirecting to another page (something I dont want to do) is there a way I could write some php that would send the form to my email address whilst staying on my page and possibly even doing it client side? Quote Link to comment https://forums.phpfreaks.com/topic/155272-sending-email-on-one-page/ Share on other sites More sharing options...
mrMarcus Posted April 22, 2009 Share Posted April 22, 2009 just put all your code on the same page, and call that page as the action in the form. it'll refresh the page, but it won't go anywhere else. Quote Link to comment https://forums.phpfreaks.com/topic/155272-sending-email-on-one-page/#findComment-816909 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.