blank stare from my mail form

Fred puissante at lrc.puissante.com
Fri Aug 6 23:10:01 EDT 2004


On Fri, 2004-08-06 at 10:11, Jason wrote:

> 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:

Since this is a POST, you'll want to retrive the data from $_POST[]
global array. Do NOT assume register_globals is set, and I consider it
bad form (no pun intended!) to use register_globals for security
reasons.

-- 
Fred -- fred at lrc.puissante.com -- place "[hey]" in your subject.
There are inflows and outflows -- and you're just a little node.
Know then, what transcendental sets have you.




More information about the gnhlug-discuss mailing list