Posted by Doug Jones on 10/23/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]
|