If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

HTML5 / PHP mailer function w/ javascript

Hello everyone,
Its a pleasure to be here ... This is my first post . .

I'm pretty new in the web developping process. escpecially in Php. here is my question . .
I'll be quite honest, I have purchased an html5 template for a my website, to my knowledge I have done all modification to it, text, css, scripts, etc . . although, I'm stuck with php in my contact form.
The reason to it is that there is Javascript involved. I have so many online tutorials on how to write a php mailer function, but non of them work and I'll be honest I'm stuck with it.

So, dont wont someone to write me a code . . although, I'll be greatful if someone will explain me what and how should I connect all those files in between them.
I will show you what I got . .

[CODE] ... [/CODE] for anything like JavaScript, CSS and text that relates to your programming.[HTML] ... [/HTML] for HTML[PHP] ... [/PHP] for PHP

You are more likely to get a response to your query.

*** code tags added ***

Last edited by jedaisoul; 07-23-2014 at 03:07 PM.

STOP using $ prefix on JavaScript variable names...
Please remember to wrap any code you have in forum tags:- [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]If you can't think outside the box, you will be trapped forever with no escape...

change the value of action in your form tag to the php page you are making and then the mailer is pretty easy, just create a variable for each of the inputs in your form, then its as easy as using the php mail function like this.

you asked us not to write the script for you so here is an example of something i have used

PHP Code:

// EDIT THE 3 LINES BELOW AS REQUIRED

$email_to = "address@email.com";

$email_subject = "Subject of Email";

$email_from = "noreply@yoursite.org";

// a basic if statement to check if your form has been submitted or not
if (isset($_POST['name']) ||