Contact Page

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
YoussefSiblini
Forum Contributor
Posts: 206
Joined: Thu Jul 21, 2011 1:51 pm

Contact Page

Post by YoussefSiblini »

Hi Guys,

I am building a contact form, I usually use php to send emails when the button is clicked.
This time I have an html page, is their a way to achieve this in an html page?


Joe
User avatar
Robert07
Forum Contributor
Posts: 113
Joined: Tue Jun 17, 2008 1:41 pm

Re: Contact Page

Post by Robert07 »

You could either use ajax to interact with a php file that will send the email or post a form to a php page that sends the email and then redirects back to the html page or wherever you want to go next. Either way it's a server side operation, not a client one.
YoussefSiblini
Forum Contributor
Posts: 206
Joined: Thu Jul 21, 2011 1:51 pm

Re: Contact Page

Post by YoussefSiblini »

Thank you,
This is a really good way, exactly what I want.

Many thanks again.
Post Reply