RE: [PHP] $_POST not working with str_replace
| From: | Ford, Mike [LSS] | Date: | Wed, 24 Mar 2004 11:30:30 +0000 |
| Subject: | RE: [PHP] $_POST not working with str_replace | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-181367@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: PHP Email List [mailto:php@wolf-smart.com]
> Sent: 24 March 2004 00:13
>
>
> what happens if you do the following?
>
> <?php
>
> $name = $_POST['FNAME'];
>
> echo "::$name::";
>
> $output = str_replace("<<FNAME>>", $name, $output);
>
> ?>
>
> ??
>
> I tried that, but I know I can get the values from the $_POST
> array as per John's email about using print_r($_POST) to see
> what was showing. And yes I get the value I wanted in between
> the :: ::.
>
> Thanks for trying though,
>
> Anyone else have any ideas on this problem?
OK, if $name is ok, what's in $output at this point? Try var_dump()-ing that.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds
Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211