![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | |
|
Registered User
Join Date: Aug 2005
Location: Ohio
Posts: 207
OS: VISTA
|
malformed recipient address - PHP
hi i am woking on making a quiz using PHP for a role play site i belong to. the user inputs there name and there email and then it sends the information to my email. Instead of sending to my email however I get an email in my host email that i host my stuff on saying
Quote:
heres the driver: Code:
<?php
$score = 0;
if ($_POST['question1'] == 'a')
++$score;
if ($_POST['question2'] == 'a')
++$score;
$name = $_REQUEST['Name'];
$email = $_REQUEST['Email'];
mail( "blah@blah.com", "Feedback Form Results",
$name, $score, "From: $email");
?>
YOUR SCORE IS: <? echo $score ?>
every thing is spelled the same and the caps are all the same as they are in the HTML document |
|
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Design Team Member
|
Re: malformed recipient address - PHP
You should use the PHP tags instead of CODE tags in the forum so the syntax is highlighted.
Try combining $name and $score - it's probably interpreting $score as "additional headers" and so on. They have to be in this order in order to function correctly: PHP Code:
PHP Code:
Last edited by Redcore; 09-01-2007 at 03:19 PM. |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Aug 2005
Location: Ohio
Posts: 207
OS: VISTA
|
Re: malformed recipient address - PHP
yes it works like every other time i try it wich for now is good enouoph. (my processor melted so i just now got to try it) thanks for all the help. I am going to try to stop asking questions i need to learn this stuff on my own, i was just to busy now i am finaly into my web classes so i have time for it
|
|
|
|
|
|
#4 (permalink) |
|
Design Team Member
|
Re: malformed recipient address - PHP
Welcome back!
I'm glad you want to learn stuff on your own - but don't worry about asking questions. Sometimes it's just more helpful to have someone explain a concept that nobody seems to answer in a way you understand. I wish I had this kind of forum when I was first starting, I've probably spent more time reverse-engineering PHP code to figure out what each PHP function does than anybody I know just because I didn't have anybody to explain it in HUMAN terms :P Last edited by Redcore; 09-11-2007 at 01:49 PM. |
|
|
|
|
|
#7 (permalink) |
|
Registered User
Join Date: Aug 2005
Location: Ohio
Posts: 207
OS: VISTA
|
Re: malformed recipient address - PHP
ohhh that remineds me speaking of the dark side. I have a question for you. Don't look in to it or anything this is just to see if it has hapend to you so i know weather i can rule out hostgator as the problem. I have a code for a extremly basic user name and password filed and it worked on the free host i use to use. I moved it over to host gator and i get an error that says method post is not allowd. I thought maybe they din't have short script enabled so i changed all the <? ?> to <?PHP ?> and thats not the problem so im trying to narrow it down, have you ever had simular problems with hostgator?
|
|
|
|
|
|
#9 (permalink) |
|
Registered User
Join Date: Aug 2005
Location: Ohio
Posts: 207
OS: VISTA
|
Re: malformed recipient address - PHP
maybe in a week or so if i can't figure it out, i wan't to try to fix this one eventualy i will give up if i can't get it but problem solving is a verry inportant part of beeing a programmer . thanks though
|
|
|
|
![]() |
| Thread Tools | |
|
|