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

Posted by Doug Jones on 10/24/37 11:24

"Stefan Rybacki" <stefan.rybacki@gmx.net> wrote in message
news:3mkcovF16gqnmU1@individual.net...
> Doug Jones wrote:
>> 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?
>
> What do you mean by echos a screen? You mean you get a blank page?
Yes.
> If you don't want that but calling another page use the header function.
>
> header("Location: http://www.foo.bar");
>
> Regards
> Stefan
>
>>
>> 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

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