NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > CODE
Reload this Page Simple Contact Form (UPDATED)

CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here.

Advanced Search


Reply
 
LinkBack Thread Tools
Old 12-13-2006, 11:32 AM   #26 (permalink)
Senior Member
 
Barrucadu's Avatar
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,689
Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold
 




If you are using PHP, you can do this:

PHP Code:
<?php include 'file.html'?>
Barrucadu is offline   Reply With Quote
Old 12-16-2006, 02:48 PM   #27 (permalink)
BioSpherical.net
 
thepurplecow's Avatar
Join Date: Jun 2006
Location: UK
Posts: 453
thepurplecow is just really nicethepurplecow is just really nicethepurplecow is just really nicethepurplecow is just really nice
 



Sorry about thsi, but I have another problem. For other reasons, I've decided to change all the pages in my site to .php, not .html as they were before. But now something has happened to my contact page. Before, I used an iframe for the contact form, but as its now .php, I don't need to do this.
????: NamePros.com http://www.namepros.com/code/202512-simple-contact-form-updated.html

See:
http://www.biospherical.net/contact.php

You'll see:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/biospher/public_html/contact.php:8) in /home/biospher/public_html/contact.php on line 33

Anyone know what the problem is?

Thanks in advance!!
thepurplecow is offline   Reply With Quote
Old 12-16-2006, 04:37 PM   #28 (permalink)
Account Closed
 
B33R's Avatar
Join Date: Mar 2006
Location: UK
Posts: 1,951
B33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud of
 

Member of the Month
October 2006
Cancer
session_start(); has to be the very first code on the page, after <?php

If you've just used a php include to include the contact form on another page, you need to move the session_start(); code out of contact.php, and to the top of the other file instead.
B33R is offline   Reply With Quote
Old 12-17-2006, 09:13 AM   #29 (permalink)
BioSpherical.net
 
thepurplecow's Avatar
Join Date: Jun 2006
Location: UK
Posts: 453
thepurplecow is just really nicethepurplecow is just really nicethepurplecow is just really nicethepurplecow is just really nice
 



I'm not using a php include, I'm using the full code for the contact form on that page (http://www.biospherical.net/contact.php). Any ideas anyone?
thepurplecow is offline   Reply With Quote
Old 12-17-2006, 09:41 AM   #30 (permalink)
Account Closed
 
B33R's Avatar
Join Date: Mar 2006
Location: UK
Posts: 1,951
B33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud of
 

Member of the Month
October 2006
Cancer
Originally Posted by thepurplecow
I'm not using a php include, I'm using the full code for the contact form on that page (http://www.biospherical.net/contact.php). Any ideas anyone?
Same thing, move the session_start(); to the top of the php file, after the <?php
B33R is offline   Reply With Quote
Old 01-30-2007, 07:16 PM   #31 (permalink)
Senior Member
 
deu12000's Avatar
Join Date: Jun 2004
Posts: 1,452
deu12000 has a brilliant futuredeu12000 has a brilliant futuredeu12000 has a brilliant futuredeu12000 has a brilliant futuredeu12000 has a brilliant futuredeu12000 has a brilliant futuredeu12000 has a brilliant futuredeu12000 has a brilliant futuredeu12000 has a brilliant futuredeu12000 has a brilliant futuredeu12000 has a brilliant future
 



I tried downloading this, but the download doesn't seem to work.
deu12000 is offline   Reply With Quote
Old 02-02-2007, 01:11 PM   #32 (permalink)
New Member
Join Date: Oct 2006
Posts: 5
Flaepru is an unknown quantity at this point
 



It is a nice script... When I was beginner, I always had problems with PHP formularys =P
Anyways, does this formulary accepts HTML formatation?
Flaepru is offline   Reply With Quote
Old 02-02-2007, 02:38 PM THREAD STARTER               #33 (permalink)
Senior Member
 
Eric's Avatar
Join Date: Mar 2005
Posts: 4,948
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
I'm not sure what's going on with attachments.. can't seem to find it on my HD either.. I'll see what I can come up with.

@Flaepru - it strips all HTML from input, if that's what you're asking.
Eric is offline   Reply With Quote
Old 02-02-2007, 02:52 PM   #34 (permalink)
Account Closed
 
B33R's Avatar
Join Date: Mar 2006
Location: UK
Posts: 1,951
B33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud ofB33R has much to be proud of
 

Member of the Month
October 2006
Cancer
Originally Posted by SecondVersion
I'm not sure what's going on with attachments.. can't seem to find it on my HD either.. I'll see what I can come up with.
I found a copy on my computer - download here.
????: NamePros.com http://www.namepros.com/showthread.php?t=202512

I made the quick fix that I mentioned in post #21 too.
B33R is offline   Reply With Quote
Old 03-01-2007, 01:53 PM   #35 (permalink)
New Member
Join Date: Feb 2007
Posts: 24
tonypony is an unknown quantity at this point
 



Can you send a zip of yr Simple Contact Form as it won't download.

Thks

tomcruse@cd2.com
tonypony is offline   Reply With Quote
Old 03-29-2007, 08:10 AM   #36 (permalink)
NamePros Regular
 
fried-chicken's Avatar
Join Date: Mar 2006
Location: Wigan, UK
Posts: 522
fried-chicken will become famous soon enough
 




does anyone know how to make this script run with a validation images, to stop robots sending endless email?
fried-chicken is offline   Reply With Quote
Old 03-29-2007, 12:00 PM   #37 (permalink)
NamePros Expert
 
IAmAllanShore's Avatar
Join Date: Nov 2004
Location: Esse quam videri
Posts: 8,332
IAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond repute
 

Member of the Month
January 2005Member of the Month
February 2007
Ethan Allen Fund Child Abuse Child Abuse Child Abuse Child Abuse Save The Children Save The Children Child Abuse Child Abuse Child Abuse Child Abuse VA Tech Memorial Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse
http://www.namepros.com/code/202512-...hlight=captcha

It does... see the "captcha" part of the code - it requires the user to match the disguised text.

-Allan
__________________

Something Witty This Way Comes...
IAmAllanShore is offline   Reply With Quote
Old 04-12-2007, 04:22 PM THREAD STARTER               #38 (permalink)
Senior Member
 
Eric's Avatar
Join Date: Mar 2005
Posts: 4,948
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
Updated to 1.0.4, see the 1st post.

Note: hasn't been tested, been quite busy but threw a release together If you have any problems, just post here.


-Eric
Eric is offline   Reply With Quote
Old 05-15-2007, 02:07 PM   #39 (permalink)
Senior Member
 
vivsin's Avatar
Join Date: Oct 2005
Posts: 1,093
vivsin is just really nicevivsin is just really nicevivsin is just really nicevivsin is just really nice
 


Diabetes
this image verification thing is not a good idea.

previous version of script was better.

please post older version if somebody have that
__________________
VIVROCKS "ROCK your LIFE" Visit : My Design Inspiration & Free Stuff Blog

This is where I started, This is where I will end. NAMEPROS = kIcKaSs
vivsin is offline   Reply With Quote
Old 05-15-2007, 02:09 PM THREAD STARTER               #40 (permalink)
Senior Member
 
Eric's Avatar
Join Date: Mar 2005
Posts: 4,948
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
Originally Posted by vivsin
this image verification thing is not a good idea.


EDIT:
Updated to 1.0.5, see first post.
Last edited by SecondVersion; 05-15-2007 at 03:44 PM.
Eric is offline   Reply With Quote
Old 05-16-2007, 07:14 AM   #41 (permalink)
Senior Member
 
vivsin's Avatar
Join Date: Oct 2005
Posts: 1,093
vivsin is just really nicevivsin is just really nicevivsin is just really nicevivsin is just really nice
 


Diabetes
1.0.4
-New constant, USE_CAPTCHA - if set to false, CAPTCHA won't be used.
-Overall code cleanup.

I missed this part.



One more good idea can be Email Retype field, 30% of my visitors mistype there email address.
__________________
VIVROCKS "ROCK your LIFE" Visit : My Design Inspiration & Free Stuff Blog

This is where I started, This is where I will end. NAMEPROS = kIcKaSs
vivsin is offline   Reply With Quote
Old 05-23-2007, 11:23 AM   #42 (permalink)
NamePros Regular
 
fried-chicken's Avatar
Join Date: Mar 2006
Location: Wigan, UK
Posts: 522
fried-chicken will become famous soon enough
 




sorry be a pain, having trying to position it in my site

http://www.cheap-florida-holiday.com/contact.php

it seems to be going off the right?

i have been playing aroung with for ages now.

any help would be great

cheers
fried-chicken is offline   Reply With Quote
Old 08-06-2007, 03:11 AM THREAD STARTER               #43 (permalink)
Senior Member
 
Eric's Avatar
Join Date: Mar 2005
Posts: 4,948
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
I'm going to be updating this script, but I'd like to know if any of you have features you want me to add.

--
And

Sorry, never noticed your post fried-chicken - It's off to the left for me?
Eric is offline   Reply With Quote
Old 11-25-2007, 08:55 AM   #44 (permalink)
NamePros Member
Join Date: Feb 2006
Posts: 76
dominiosclave is an unknown quantity at this point
 



thanks secondVersion
__________________
Key Domains Games For Players

Rent my firm for little NP - Send me mp
dominiosclave is offline   Reply With Quote
Old 03-02-2008, 03:41 AM THREAD STARTER               #45 (permalink)
Senior Member
 
Eric's Avatar
Join Date: Mar 2005
Posts: 4,948
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
Updated, see first post. http://www.namepros.com/1280909-post1.html
Eric is offline   Reply With Quote
Old 03-02-2008, 04:27 AM   #46 (permalink)
Joe
Senior Member
Join Date: Oct 2005
Location: Kent ~ U.K.
Posts: 3,209
Joe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud of
 


Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
Downloaded it.

Thanks a lot SV.
Joe
__________________
Myself and "JackHeskett" are no longer associated with FusedHosting.net. Please pipe all PMs to admin [at] fusedhosting.net.
Joe is offline   Reply With Quote
Old 03-13-2008, 07:41 PM   #47 (permalink)
Mr. LLLL Man
 
bfluid's Avatar
Join Date: Apr 2007
Location: GA, USA
Posts: 1,476
bfluid has much to be proud ofbfluid has much to be proud ofbfluid has much to be proud ofbfluid has much to be proud ofbfluid has much to be proud ofbfluid has much to be proud ofbfluid has much to be proud ofbfluid has much to be proud ofbfluid has much to be proud of
 


Baby Health Cancer Survivorship Child Abuse
Just what I was looking for.
__________________
Have Questions Concerning Domaining? I'm Here to Help! :)
bfluid is offline   Reply With Quote
Old 05-15-2008, 08:00 AM THREAD STARTER               #48 (permalink)
Senior Member
 
Eric's Avatar
Join Date: Mar 2005
Posts: 4,948
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
Anyone have a copy of the latest version? The attachment no longer works. This time I thought I had saved a copy on my PC, but I can't find it.
Eric is offline   Reply With Quote
Old 06-23-2008, 03:42 AM   #49 (permalink)
NamePros Regular
 
Richard's Avatar
Join Date: Jan 2006
Posts: 571
Richard is a name known to allRichard is a name known to allRichard is a name known to allRichard is a name known to allRichard is a name known to allRichard is a name known to allRichard is a name known to allRichard is a name known to all
 


Save a Life Tsunami Relief AIDS/HIV Save a Life
SecondVersion: The attachment no longer works (as you're already aware). Did you manage to find a copy?
__________________
"Failure is not the only punishment for laziness; there is also the success of others."
Richard is offline   Reply With Quote
Old 06-23-2008, 05:19 PM THREAD STARTER               #50 (permalink)
Senior Member
 
Eric's Avatar
Join Date: Mar 2005
Posts: 4,948
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
Was never able to find a copy. If no one has a copy, I may have to rewrite, IF I can ever find the time to do so.
Eric is offline   Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.namepros.com/code/202512-simple-contact-form-updated.html
Posted By For Type Date
simple-contact-form - Project Hosting on Google Code This thread Refback 04-20-2010 08:46 AM
My Portfolio - SecondVersion&#039;s Blog This thread Refback 02-05-2010 02:14 PM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 01:03 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger