There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Tag Cloud
access acer asus bios bsod computer crash driver drivers error ethernet excel freeze gaming google gpu graphics hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry repair router security slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
contact form

Reply  
Thread Tools
num's Avatar
num num is offline
Member with 263 posts.
 
Join Date: Oct 2005
03-Oct-2009, 09: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 677 posts.
 
Join Date: Jun 2007
Location: US and A
Experience: Ninja
18-Oct-2009, 07: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://unixsysadmin.org
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




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



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 06:50 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.