RE: [PHP] $_POST problem
| From: | Joe Harman | Date: | Thu, 10 Jul 2003 04:35:40 +0000 |
| Subject: | RE: [PHP] $_POST problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154676@lists.php.net to get a copy of this message | ||
Yeah, me too... LOL... Although, I don't understand the curly
brackets... I don't see any examples using them in the manual either...
http://us4.php.net/trim
Try this
$img_keywords = trim($_POST['keywords'])
or this
$PassItOn=$_POST['keywords'];
$img_keywords = trim($PassItOn);
-----Original Message-----
From: Aaron Axelsen [mailto:axelseaa@amadmax.com]
Sent: Thursday, July 10, 2003 12:26 AM
To: 'Micah Montoy'; php-general@lists.php.net
Subject: RE: [PHP] $_POST problem
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Whenever I call a vriable, I do something like $_POST['keyword']
Are you just getting a parse error?
- ---
Aaron Axelsen
AIM: AAAK2
Email: axelseaa@amadmax.com
Want reliable web hosting at affordable prices?
www.modevia.com
Web Dev/Design Community/Zine
www.developercube.com
- -----Original Message-----
From: Micah Montoy [mailto:montmica@isu.edu]
Sent: Wednesday, July 09, 2003 11:21 PM
To: php-general@lists.php.net
Subject: Re: [PHP] $_POST problem
Didn't make a difference. Still getting the errors.
"Joe Harman" <joe@harmanmedia.com> wrote in message
news:004801c34699$0bda43a0$7e8a8741@darwin...
> 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:montmica@isu.edu]
> Sent: Wednesday, July 09, 2003 11:57 PM
> To: php-general@lists.php.net
> 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" <axelseaa@amadmax.com> wrote in message
> news:003701c34693$7fe05150$6400a8c0@DELTA...
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Try:
> >
> > $img_keywords = trim({$_POST["keywords"]});
> >
> > - ---
> > Aaron Axelsen
> > AIM: AAAK2
> > Email: axelseaa@amadmax.com
> >
> > Want reliable web hosting at affordable prices? www.modevia.com
> >
> > Web Dev/Design Community/Zine
> > www.developercube.com
> >
> >
> >
> > - -----Original Message-----
> > From: Micah Montoy [mailto:montmica@isu.edu]
> > Sent: Wednesday, July 09, 2003 10:26 PM
> > To: php-general@lists.php.net
> > 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/AwUBPwzq0rrnDjSLw9ADEQIGnACfbrvO1NUgRj11QHK9stcM1Tir250AoOeA
AHg0A8YeasOSjhaFIlZoEadb
=qWEI
-----END PGP SIGNATURE-----
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php