[thelist] PHP Mail variables?

Dave Preston caffiend at simianbrotherhood.org
Mon Dec 10 12:22:59 CST 2001


And all the data in the input type="hidden" looks ok?

Constructive criticism here, you are needlessly concatinating your
string, php will expand variables within double quotes. However you
generally get better performance from using single quotes (which will
need to have the vars concatinated to the string) since the php
parser doesn't try to expand any variables within single quotes.

On Mon, Dec 10, 2001 at 10:07:34AM -0800, Waller, Rio wrote:
> Thanks Dave!
> 
> I tried that but now I don't get anything on the email message for
> company...here is my code for the message body...maybe I'm doing something
> wrong in here:
> 
> if ($action == "send_mail") {
>         $now = date("D dS M h:m:s");
>         $message  = "Here is information submitted on the Order Page at\n";
>         $message .= $now."\n";
>         $message .= "Domain Name:            ".$exNewDomainName."\n";
>         $message .= "Number Domain Years:    ".$exRegPeriod."\n";
>         $message .= "Total Domain Reg Cost:  ".$total."\n";
>         $message .= "Plan:                   ".$Plan."\n";
>         $message .= "First Name:             ".$FirstName."\n";
>         $message .= "Last Name:              ".$LastName."\n";
>         $message .= "Company:                ".$Company."\n";
>         $message .= "Address:                ".$Address."\n";
>         $message .= "City:                   ".$City."\n";
>         $message .= "State:                  ".$State."\n";
>         $message .= "Zip:                    ".$Zip."\n";
>         $message .= "Phone:                  ".$Phone."\n";
>         $message .= "Email:                  ".$Email."\n";
>         $message .= "Country:                ".$Country."\n";
>         $message .= "Contract Length:        ".$exContractLength."\n"; 
>         
>        mail("sales at mydomain.com", "Online Form", $message)
>        ?>
> 
> Again...thanks for you assistance! :)
> 
> 
> 
>  -----Original Message-----
> From: 	Dave Preston [mailto:caffiend at simianbrotherhood.org] 
> Sent:	Monday, December 10, 2001 9:40 AM
> To:	thelist at lists.evolt.org
> Subject:	Re: [thelist] PHP Mail variables?
> 
> try this instead..
> 
> <input type="hidden" name="Company" value="<? $Company; ?>">
> 
> 
> should work a little better for you...
> 
> -d
> 
> 
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt ! 
> 
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt ! 
> 




More information about the thelist mailing list