FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » echo outputs null why?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: echo outputs null why? [message #180652 is a reply to message #180649] Fri, 08 March 2013 02:35 Go to previous messageGo to previous message
David Robley is currently offline  David Robley
Messages: 23
Registered: March 2013
Karma:
Junior Member
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!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: In php applying the KISS rule wins every time
Next Topic: Re: Cloud Computing with PHP
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Sep 28 23:18:18 GMT 2024

Total time taken to generate the page: 0.04549 seconds