Re: Simple form but no output



If the example code you gave is a copy n paste then I'm sure its not
working because of a typo:

> echo "_POST[ 'name' ] = $_POST[ 'name' ]";
misses a $ on the first $_POST['name']
There isnt really a need to put a space in the variable name as far as
I'm aware?? and ur code shuld read better without the space.

Regards
- Rob

dave_nul@xxxxxxxxxxx wrote:
> Thanks, DJ. You were right:
>
> PHP likes the
> echo "input = $input";
> but not the
> echo "_POST[ 'name' ] = $_POST[ 'name' ]";
>
> Perhaps array elements are not interpolated like in Perl. I'm
> definitely new to PHP.

.



Relevant Pages

  • Re: PHP vs. Perl
    ... > What are the advantages of PHP to Perl or vice versa? ... Prev by Date: ...
    (alt.php)
  • Re: Will php ever do strong typing?
    ... discussion with representative from Perl, PHP, and Rudy: ... Prev by Date: ...
    (comp.lang.php)
  • Re: Perl CGI no longer used?
    ... >> Has everyone moved over to using PHP? ... > problems without creating fantastically improbable theories bordering ... is Perl the only thing you have going on in your life? ... Prev by Date: ...
    (comp.lang.perl.misc)
  • does anyone one know any opentoro like project for php?
    ... does anyone one know any opentoro like project for php? ... (or perl?) ... Prev by Date: ...
    (comp.lang.php)
  • Run script in linux with php
    ... I need to run some linux scripts and i wan't to do it using php or ... perl, to be executable via browser. ... Prev by Date: ...
    (php.general)