You are here: Re: [PHP] PHP Printing Error Help « PHP « IT news, forums, messages
Re: [PHP] PHP Printing Error Help

Posted by Chirantan Ghosh on 08/23/05 17:12

Hi Richard,

I am new as you can assume. Hence, I have no clue how to turn
>
> register_globals back "On"
>

////////////////Is there any other place I can read more about creating
Arrays? other than http://us2.php.net/manual/en/language.types.array.php

The page is discussion:
http://www.primarywave.com/BrokerOutpost_ContNAGHAM.php doesn't seem to send
the email even

Can you please shed some light?

Thanks,
C

----- Original Message -----
From: "Richard Lynch" <ceo@l-i-e.com>
To: "Chirantan Ghosh" <cghosh@primarywave.com>
Cc: "John Nichel" <john@kegworks.com>; <php-general@lists.php.net>
Sent: Tuesday, August 23, 2005 2:00 AM
Subject: Re: [PHP] PHP Printing Error Help


> On Mon, August 22, 2005 12:56 pm, Chirantan Ghosh wrote:
>> //////////////[snip]
>>> You probably want to move into the relm of array's. For each one of
>>> your
>>> checkboxes, you can do this...
>>>
>>> <input type="checkbox" name="InterestedNumber[]"
>>> value="1-877-HOMECASH">
>> /////////////[/snip]
>>
>> I did look up ARRAY. I just didn't understand how I can insert a
>> table(
>> "InterestedNumber") in an arrey so I could put something like this for
>> form
>> processing:
>> ------------------------------------------------------
>> <?
>> foreach($HTTP_GET_VARS as $indx => $value) {
>> ${$indx}=$value;
>> }
>> foreach($HTTP_POST_VARS as $indx => $value) {
>> ${$indx}=$value;
>> }
>
> Gak.
>
> If you are going to do this, you might as well just turn
> register_globals back "On"
>
> You've got the SAME security problem -- You just are doing it to
> yourself instead of letting PHP do it to you.
>
>> if($sendmessage == "yes"){
>>
>> $mailBody .= "SelectedNumber: $SelectedNumber\n"; //////I am
>> thinking this
>> is where I should put the Array??/////
>
> $mailBody .= "SelectedNumbers:\n";
> $mailBody .= implode("\n", $InterestedNumbers);
>
>> $mailBody .= "Comments: $comments\n\n\n";
>
> --
> Like Music?
> http://l-i-e.com/artists.htm
>
>
>

 

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

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