I have written a small email sending function in php (raw data sent to a connected socket) and i know this works, but now I need to build this into a form, so that when the user clicks the submit button I need to call the function 'sendemail', this functions collects a lot of information and sends the email, therefore I will not need the submit button to load a new web page since a popup message will tell if the email was sent or not.
Does anyone know how to do this? should i use a plain button and not a submit button?
Thanks in advance
-Thomas Leggett