Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

Adding contact form on every page.

the mail() function

Moderators: macek, egami, gesf

Adding contact form on every page.

Postby TyMcClendon » Mon Sep 12, 2011 8:48 am

Hi,

I'm adding a contact form to all of my html pages.

I've got the php script working, however I created the script based off of a template I made in Dreamweaver.

When I use the form on the .html page, it links me to the response.php script.

The script does not continue to show my prior content though. Instead ,it displays my generic template text.

I'm thinking I need to make all my pages .php files instead of .html, with a self referencing form in order to be able to effectively allow the user to contact me from every page, without changing any of the content on page.

If I link externally to the php file, can I leave my files as .html files, and still include the php response/ echo statements?

Or do I need to convert my files to a .php extension, and use a self referencing form?

Or should I clean up my Dreamweaver template?

Thanks,

Ty
TyMcClendon
New php-forum User
New php-forum User
 
Posts: 1
Joined: Mon Sep 12, 2011 8:41 am

Re: Adding contact form on every page.

Postby mrmasad » Mon Sep 12, 2011 10:47 pm

U can add once a contact form in a contact.php file then this file may include in every .php file easily instead of adding again and again contact form in every file. u may add following code where u want to add contact form:-
include("contact.php");
mrmasad
New php-forum User
New php-forum User
 
Posts: 2
Joined: Mon Sep 12, 2011 1:51 am


Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron