I wasn’t sure weather to post this in the server-side or client-side forum. I guess it concerns both.
I’m using ALAX to load content dynamically on a website (xmlHttpReq). It’s working fine.
My problem is when I try to use a php mail form with it. I’ve tried a few mailforms and my knowledge of php is little to none. All of them don’t work when loaded in by the Ajax (but would have worked otherwise), more simple ones might have worked but the main issue is that when it shows a confirmation message afterwards, e.g. “thank you, your messages has been sent”, it doesn’t load dynamically within the div like all the other content, it changes the whole page.
So I tried onClick=“javascript:AJAX(‘mailer.php’)” on the submit button, still not working, maybe I’m not doing that bit right?
Basically I’m looking for a way to get a php mailform to work while using xmlHttpReq.
The only other alternative I considered is to make an iframe and have the mailform on a totally independent page, displayed in the iframe. But I really would prefer to sort it without using an iframe.
Any help would be greatly appreciated. Many thanks. :thumb: