ramboangel11
-
Posts
32 -
Joined
-
Last visited
Never
Posts posted by ramboangel11
-
-
<input name="TEXT_1" maxlength=255 size=1 value="" type=text>
This is inside the .htm document. The same code for each separate variable.
<form name="message" method="post" action="sendmail2.php">This is my form tag in the same .htm document.
>.<
-
Okay, so I somehow got it to send emails and I'm receiving them from a valid email...
And now, none of the content variables show up in the email. It's completely blank.
Sorry to bother....
Thank you!
CODE now that it sends emails:
<?php
$message = "{$TEXT_1}{$TEXT_20}{$TEXT_21}{$TEXT_4}{$TEXT_2}{$TEXT_5}{$TEXT_6}{$TEXT_7}{$TEXT_8}{$TEXT_9}{$TEXT_10}{$TEXT_11}{$TEXT_12}{$TEXT_13}{$TEXT_14}{$TEXT_15}{$TEXT_16}{$TEXT_2}{$TEXT_3}{$TEXT_4}{$TEXT_5}{$TEXT_6}{$TEXT_7}{$TEXT_8}{$TEXT_9}{$TEXT_AREA_3}{$TEXT_14}{$TEXT_15}{$TEXT_16}{$TEXT_17}{$TEXT_18}";
$message = $_REQUEST ['message'] ;
if (isset($_REQUEST['message'])) {
}
else{
mail( "myemailaol.com", "Referral Form Results",
$message, "From: example@aol.com" );
header( "Location: http://www.example.com" );
}
?>
-
It shouldn't have redirected anywhere.
So, what should I do? I clicked submit and it changed to a blank page.
-
No, Text_7 is actually a name field in an input textarea.
Also, checking if the mail is true redirected the page to a blank page. :-/
-
Yes, I have. I'm not receiving anything.
-
<?php
$message = "{TEXT_1}{$TEXT_20}{$TEXT_21}{$TEXT_4}{$TEXT_2}{$TEXT_5}{$TEXT_6}{$TEXT_7}{$TEXT_8}{$TEXT_9}{$TEXT_10}{$TEXT_11}{$TEXT_12}{$TEXT_13}{$TEXT_14}{$TEXT_15}{$TEXT_16}{$TEXT_2}{$TEXT_3}{$TEXT_4}{$TEXT_5}{$TEXT_6}{$TEXT_7}{$TEXT_8}{$TEXT_9}{$TEXT_AREA_3}{$TEXT_14}{$TEXT_15}{$TEXT_16}{$TEXT_17}{$TEXT_18}";
$message = $_REQUEST ['message'] ;
if (isset($_REQUEST['message']))
mail( "myemail@aol.com", "Referral Form Results",
$message, "From: $TEXT_7" );
header( "Location: http://www.example.com" );
?>
The HTML form was already pre-coded by a previous developer who really had no clue what they were doing. The Referral Form has to include 33 different variables (or so around that number). I have them in 2+ variable string concantenation...
In the real code, I have my actual email address where it says "myemail@aol.com", and an actual thank you page for the header.
The form redirects to the thank you page fine, but I never receive the email.
Please help! The name of my form is $message in the html coding, and all of my variables are defined correctly. My form is set to the correct action.
GAH!
Thank you in advance!
PHP form won't send emails!
in PHP Coding Help
Posted
Which aspects of my code should be changed to $_POST?
I'm fairly new to PHP...heh.