View Single Post
  #1  
Old 12-18-2010, 01:12 AM
Dylan is offline Dylan
Registered User

Join Date: Dec 2010
Posts: 2

phmailer Problems When Embedded in a Page

I embedded phmailer in an HTML page. Everything works flawlessly, with one exception. When I try to submit an E-Mail that has an incomplete field or other error it amends the page and shows that I have errors in a big red text, but it navigates away from the page and goes to the phmailer.php file to do so. I poked and prodded to try to figure out what makes this tick; it all seems like magic to me.

What I'd like it to do is just use JavaScript alert to tell the submitter there's a problem, without navigating away (I'm not sure how it works, but I think it tries to reload itself). I can get the alert down, but it still moves from the current page to just the lone php page.

If I'm explaining this poorly please let me know. My code is a mess and all over the place. The phpmailer page has not been greatly altered though.
Reply With Quote