blank stare from my mail form
Jason
jason at kernbuilt.com
Fri Aug 6 10:12:01 EDT 2004
Hello All, (Ben, I tried to give all the information. I'm sure you'll let me
know what I've missed ;>)
I have a mail form (in PHP)that will not pass any values. Not sure if this
is a config issues or not. When submitted it's very slow and finally
processes but sends blanks. An identical form on a different server (that I
don't have access to poke around) works like a charm. I looked in the
archives and several php boards and didn't see anything posted with the same
problem.
Here's the info: RH 9, PHP 4.2.2, Apache 2.0.40.
Form Code -
<form name="frustrating_problem_form" method="post"
action="please_work.php">
<font face="Arial, Helvetica, sans-serif" size="2"
color="#666666">what's your email address?</font><br>
<input type="text" name="email_address" value="required
field">
//errorchecking to be added when the darn thing works
<br>
<br>
<font face="Arial, Helvetica, sans-serif" size="2"
color="#666666">how can we help?</font><br>
<textarea name="question" cols="20" rows="8"></textarea>
<br>
<input type="submit" name="Submit" value="ask!">
</form>
PHP (please_work.php)-
<?php
$toaddress = "receiver at domain.com";
$subject = "Feedback From Frustrating Problem Form";
$mailcontent = "Email Address: ".$email_address."\n"
."Question: ".$question."\n";
$fromaddress = "webserver at domain.com";
mail($toaddress, $subject, $mailcontent);
?>
Now the PHP actually processes the request but passes no data. No matter
what's entered in the form, in my receiver at domain.com inbox I get:
Subject: Feedback From Frustrating Form
Email Address:
Question:
The closest info I see in the archives is regarding the register_globals and
I don't know how or if I want to turn that on (it's off now). Also, I see
some reference to the .htaccess file. I know how to manage that one but what
directives need to be there?? Any suggestions are appreciated.
Jason Kern
www.KernBuilt.com
603.823.5150
More information about the gnhlug-discuss
mailing list