Jeff Burcher j...@allredmetal.com hat am 14. Juni 2012 um 14:23 geschrieben:
You're a genius!! Thank you. Uppercase 'R', sheesh. PHP is sooo picky. I
worked for two days trying to figure that one out. Anyway, for future
reference, you can pass the entire array as a variable like that?? and
On 6/14/2012 7:28 PM, Tim Dunphy wrote:
Hello list,
I was just wondering if I could get some opinions on a snippet of
code which breaks a php web page.
First the working code which is basically an html form being echoed by php:
if ($output_form) {
echo 'br /br /form
Al n...@ridersite.org hat am 15. Juni 2012 um 14:29 geschrieben:
On 6/14/2012 7:28 PM, Tim Dunphy wrote:
However if I change the form action to this, it breaks the page
resulting in a white screen of death:
error_reporting(E_ALL);
ini_set('display_errors', 'On');
And what is the error
Hear, Hear for heredocs. The only way to code up your html. Took me a few
months to discover it and haven't looked back since.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 06/15/2012 06:35 AM, Jim Giner wrote:
Hear, Hear for heredocs. The only way to code up your html. Took me a few
months to discover it and haven't looked back since.
The only problem I have with HEREDOC is I cannot use constants within them.
--
Jim Lucas
http://www.cmsws.com/
Jim Lucas li...@cmsws.com hat am 15. Juni 2012 um 18:39 geschrieben:
On 06/15/2012 06:35 AM, Jim Giner wrote:
Hear, Hear for heredocs. The only way to code up your html. Took me a few
months to discover it and haven't looked back since.
The only problem I have with HEREDOC is I
It is a small price to pay for large block, especially if the text has any
quotes. Personally, I can't keep them straight and delimit them, etc. Heredoc
saves all that such stuff.
$insert= MY_DEFINED;
echo hdc
This is my $insert
hdc;
On 6/15/2012 12:39 PM, Jim Lucas wrote:
On 06/15/2012
I have 25 cities and am currently using the following to set the $toaddress for
submitting student pre-registration forms based on the city selected:
if ($city == Calgary) {
$toaddress = abc@emailaddress;
} elseif ($city == Brooks) {
$toaddress = def@emailaddress;
and so on.
Would
Way easier to just use a map.
$mapping = array(
'Calgary' = abc@emailaddress,
'Brooks' = def@emailaddress,
// etc
);
$toaddress = $mapping[$city];
Regards,
–Josh
Joshua Kehn | @joshkehn
http://joshuakehn.com
On Jun 15, 2012, at 6:20
Ah yes that's it.
Thank you for your help. Have a good weekend.
April
On 2012-06-15, at 4:29 PM, Joshua Kehn wrote:
Way easier to just use a map.
$mapping = array(
'Calgary' = abc@emailaddress,
'Brooks' = def@emailaddress,
// etc
);
$toaddress = $mapping[$city];
On 06/15/2012 06:44 PM, April Mains wrote:
Ah yes that's it.
Thank you for your help. Have a good weekend.
April
On 2012-06-15, at 4:29 PM, Joshua Kehn wrote:
Way easier to just use a map.
$mapping = array(
'Calgary' = abc@emailaddress,
'Brooks' = def@emailaddress,
//
11 matches
Mail list logo