[FX.php List] Why doesn't this parse?
DC
dan.cynosure at dbmscan.com
Tue May 20 12:43:37 MDT 2008
yep. it was the nested-curlies you were supposed t'notice, not the echo.
i believe the problem with the first example is that the string isn't
being evaluated (and variables parsed) at the point you think it is.
nested-curly-brackets may help.
just a thought. not positive.
dan
Jonathan Schwartz wrote:
> Thanks, but... not really.
>
> I'm not sure what to do with the echo command you offered. I already
> have an instance working where I am hardcoding the string, Case 1. I
> need to this to come from a form entry/submission.
>
> The application is for mass email, where the html mail is created by a
> user on a web page with variables inserted for name, etc. Upon
> submission, the html mail is parsed and real names replace variables.
>
> So, the source of the string has to be from a form, just like the
> example on the test page I created.
>
> Did I misunderstand your suggestion?
>
> Jonathan
>
>
>
> At 1:23 PM -0400 5/20/08, DC wrote:
>> does this help?
>>
>> echo "This is the value of the var named $name: {${$name}}";
>>
>> i found it on the PHP strings page.
>>
>> http://www.php.net/manual/en/language.types.string.php
>>
>> cheers,
>> dan
>>
>> Jonathan Schwartz wrote:
>>> Hi Folks,
>>>
>>> I'm still pounding away trying to resolve the problem I posted last
>>> week: successfully parsing a string that contains variables, where
>>> the string comes from a form.
>>>
>>> I tried explaining this in words twice, but managed to muddle the
>>> problem. Instead, I have created a working example:
>>>
>>> http://www.exit445.com/test.php
>>>
>>> The page shows 4 different ways to parse the sample string. The one
>>> I need...where the string comes from a form field.... doesn't work.
>>>
>>> Please visit the page and see if you can tell me why .
>>>
>>> Thank You!
>>>
>>> jonathan
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
More information about the FX.php_List
mailing list