Current location: Hot Scripts Forums » Programming Languages » PHP » Email form with PHP once submit is clicked the php script is disaplayed


Email form with PHP once submit is clicked the php script is disaplayed

Reply
  #1 (permalink)  
Old 07-24-10, 01:31 PM
utailor utailor is offline
New Member
 
Join Date: Jul 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Email form with PHP once submit is clicked the php script is disaplayed

Hi All

I have probably what is a basic problem but being slightly new having problems

I have a form in html which as 3 fields name email address and comments with a submit button. I also have a php script which is suppose to email me the details. However I am having an issues where once the submit button is hit the php script is simply displayed in the browser. I have tried several different example scripts from the web and they all do the same any thoughts anyone

thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-24-10, 09:22 PM
infinitylimit's Avatar
infinitylimit infinitylimit is offline
Code Guru
 
Join Date: Jun 2004
Location: Oregon
Posts: 758
Thanks: 0
Thanked 0 Times in 0 Posts
You should post the code, but the obvious suspects would be tags <?php ?> (check short tags <? is different and may not be supported). The other type of problems are with the php install and the x-types. If apache doesn't know to process .php files then you might be having them rendered as text.
__________________
Hawk Enterprises -- Home to PHP games, open-source code, tutorials and free downloads
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 07-26-10, 06:13 PM
Jcbones Jcbones is offline
Aspiring Coder
 
Join Date: Mar 2009
Location: North Carolina, USA
Posts: 516
Thanks: 5
Thanked 47 Times in 44 Posts
Make sure your host has PHP support.

Make sure your files are assigned the .php extension.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Form to Excel then send as email attachment Moloch PHP 14 01-26-11 04:43 AM
looking for a php script to clean up form info before sending dreamydesigner Script Requests 9 04-11-08 02:31 PM
Trying to recode my php script into c to run on linux... DaJackal C/C++ 1 02-03-06 09:22 PM
submit form in php danlew PHP 11 01-11-06 04:34 AM
Email after Form 'submit' sixflagsga Script Requests 1 10-10-04 12:04 AM


All times are GMT -5. The time now is 04:46 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.