The only time you want to use {braces} like that is when you are in a string. None of the suggestions here are in strings, so the use of {braces} is bogus. The following is good:
echo "Hello {$there['friend']} is good"; Note how we're in a string. This topic is very much discussed (with loads of examples) here: http://www.php.net/types.string Regarding the question in this thread, it's not clear what you're problem is. If the form is method POST, and you have at least PHP version 4.1.0, there is a 100% chance that the name/value will live in $_POST. <input type="text" name="foo"> echo $_POST['foo']; Not sure what the question is, could you be a little more clear? It seems you are mixing up img_keywords and new_keywords, maybe that's it. Debugging101 would say to check what's in $_POST, which could be: print_r($_POST); Regards, Philip On Wed, 9 Jul 2003, Aaron Axelsen wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Sometimes in situatinos like that, it does the trick for me, im not > really sure why though .., I just now it works :) > > - --- > Aaron Axelsen > AIM: AAAK2 > Email: [EMAIL PROTECTED] > > Want reliable web hosting at affordable prices? > www.modevia.com > > Web Dev/Design Community/Zine > www.developercube.com > > > > - -----Original Message----- > From: Joe Harman [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 09, 2003 11:09 PM > To: 'Micah Montoy'; [EMAIL PROTECTED] > Subject: RE: [PHP] $_POST problem > > > Hey... Just for Sh** and giggles... Try removing the quotes from > keywords > > Make it look like this... > > $img_keywords = trim({$_POST[keywords]}) > > Hmmm..... Something is up here... Never seen curly brackets used like > this... But that would probably be normal for me.... LOL....just > thought I point out anything unusual... > > > > - -----Original Message----- > From: Micah Montoy [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 09, 2003 11:57 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] $_POST problem > > > Nope. That didn't do it. The errors I'm receiving are: > > Notice: Undefined index: keywords in > c:\inetpub\wwwroot\webpage10\example\v_images\dsp_update_image.php on > line 22 and > > Notice: Undefined variable: img_keywords in > c:\inetpub\wwwroot\webpage10\example\v_images\dsp_update_image.php on > line 29 > > thanks > > "Aaron Axelsen" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Try: > > > > $img_keywords = trim({$_POST["keywords"]}); > > > > - --- > > Aaron Axelsen > > AIM: AAAK2 > > Email: [EMAIL PROTECTED] > > > > Want reliable web hosting at affordable prices? www.modevia.com > > > > Web Dev/Design Community/Zine > > www.developercube.com > > > > > > > > - -----Original Message----- > > From: Micah Montoy [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, July 09, 2003 10:26 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] $_POST problem > > > > > > Anyone see what when I submit this, I can't do a $_POST on it? I > > check with the DB first to see if there is a value and if so, I > > fill it, otherwise, it will return a blank for the user to fill if > > they want. > > > > <input type="text" name="keywords" value="<?php > > echo("$new_keywords"); > > > ?>" size="53" maxlength="500"> > > > > On the page that it goes to when it is submitted, the post looks > > like this: > > > > $img_keywords = trim($_POST["keywords"]); > > > > > > thanks > > > > > > > > - -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -----BEGIN PGP SIGNATURE----- > > Version: PGPfreeware 7.0.3 for non-commercial use > > <http://www.pgp.com> > > > > iQA/AwUBPwzdn7rnDjSLw9ADEQIcCQCgkktDGf9u26bOntsqMPw93lpINdcAoM9h > > tVqNcesMuM/L3fZaXmIdKdId > > =fJlG > > -----END PGP SIGNATURE----- > > > > > > > > - -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > - -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -----BEGIN PGP SIGNATURE----- > Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com> > > iQA+AwUBPwzqPLrnDjSLw9ADEQKPYgCgjokK/dQZwk10ylF+5Pjpz2YANisAmNGk > LTtC/a1boJlKfxXawTNyDPs= > =ptOt > -----END PGP SIGNATURE----- > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php