You are here: Please help a Newbie « PHP Language « IT news, forums, messages
Please help a Newbie

Posted by Doug Jones on 11/07/36 11:24

I'm at beginning of the PHP learning curve.
Will someone out there help me with this problem.

On the client side the user fills in a form in HTML and submits
with:
<form NAME="Mail" METHOD=POST ACTION="phpemail.php">
snip
<input TYPE="submit" VALUE="Send">
then my PHP code on the server side is:
<?php
$Message = "Customer Name = ".$_REQUEST["Customer"];
$Message .= "\nCompany Name = ".$_REQUEST["Company"];
$Message .= "\nAddress 1 = ".$_REQUEST["Address1"];
$Message .= "\nAddress 2 = ".$_REQUEST["Address2"];
$Message .= "\nAddress 3 = ".$_REQUEST["Address3"];
$result = mail("myname@myisp.net", "Name And Address", $Message);
?>
This does what it should, but it also echos a screen to the client.
How do I stop or prevent the echo?

Thanks for any help

dougjones

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация