Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #8588
| From | David Robley <me@home.invalid> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: echo outputs null why? |
| Followup-To | comp.lang.php |
| Date | 2013-03-08 13:05 +1030 |
| Organization | albasani.net |
| Message-ID | <khbip3$c7f$1@news.albasani.net> (permalink) |
| References | <ye6vgsb4lpyk.1mihgafgsd6u.dlg@40tude.net> |
Followups directed to: comp.lang.php
richard wrote:
> http://mroldies.net/urltest.php?rank=1
>
> <?php
>
> $rank=$_GET["rank"];
>
> echo $rank;
>
> if ($rank==1) {
> $atitle="A Summer Place";
> $cover="1960-001.jpg";
> };
>
> echo $atitle;
> echo "<img src='http://mroldies.net/covers/$cover'>";
>
> ?>
>
> I do not understand why $atitle is not being shown as it should be.
>
> This is just an experiment.
var_dump($_GET);
To see what is there.
--
Cheers
David Robley
Help stamp out, eliminate, and abolish redundancy!
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
echo outputs null why? richard <noreply@example.com> - 2013-03-07 20:13 -0500 Re: echo outputs null why? David Robley <me@home.invalid> - 2013-03-08 13:05 +1030 Re: echo outputs null why? richard <noreply@example.com> - 2013-03-07 23:36 -0500 Re: echo outputs null why? Denis McMahon <denismfmcmahon@gmail.com> - 2013-03-13 14:11 +0000
csiph-web