Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Web Design & Development
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop driver drivers dvd email error excel firefox hard drive hardware internet keyboard laptop malware monitor motherboard network networking outlook problem processor ram recovery router safe mode screen slow sound spyware tdlwsp.dll trojan upgrade video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
contact form

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

 
Thread Tools
num's Avatar
num num is offline
Senior Member with 248 posts.
 
Join Date: Oct 2005
03-Oct-2009, 08:27 AM #1
contact form
Ok here is my entire contact.html file:

http://sitepoint.pastebin.com/m5006fd8a

Here is the CSS:

http://sitepoint.pastebin.com/m42b37922

Here is the Javascript which is in the contact.html file, but I separated it out for easier reading:

http://sitepoint.pastebin.com/m486581b

Here is my mailix.php which I got help from several coders and they said that is the correct way:

http://sitepoint.pastebin.com/m444ea3f0

I am just trying to get the mail to be sent to me, but not sure whenever I click "submit" I get the error: "blarg!" which appears at the bottom of the mailix.php file:

PHP Code:
echo "Data has been submitted to $to!"
mail($to$subject$body); 
} else { 
echo 
"blarg!"

?> 
What am I doing wrong? It should work, that exact form had worked and I did receive email it is just something that it isn't parsing through the javascript correctly. Please help.
briealeida's Avatar
Computer Specs
Senior Member with 660 posts.
 
Join Date: Jun 2007
Location: US and A
Experience: Ninja
18-Oct-2009, 06:37 PM #2
What have you changed since it last worked?

Looks like the php is being executed. You may want to check out the proper syntax for:

http://www.w3schools.com/PHP/func_array_key_exists.asp


Also, is this the contact form at: http://www.naspos.com/contact.html? There are much simpler ways to accomplish what you are trying to do. Most notably changin the action for the form to the PHP file and executing it there and then having PHP echo the page, including the Thank you message.
__________________
--
Brie Aleida
http://areyououtofyourvulcanmind.com
Reply Bookmark and Share

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 09:21 PM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.