Re: pretty simple-but i can't figure it out
| From: | Scott Hurring | Date: | Tue, 30 Jul 2002 18:44:39 +0000 |
| Subject: | Re: pretty simple-but i can't figure it out | ||
| References: | 1 2 3 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-15020@lists.php.net to get a copy of this message | ||
look at your quotes... you have a " inside of your echo statement,
which royally messes up what you'd expect echo to output.
and from a style POV, you might want to put "{}" around your vars,
for example "more{$i}.php". it will make your vars stick out a bit
more and prevent accidental mis-interpretation (if you use
"$imore.php", it would not use "$i"'s value but "$imore")
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Tim Blackwell" <timblackwell@hotmail.com> wrote in message
news:20020726151301.32813.qmail@pb1.pair.com...
> thanks a lot, that helped. now, why doesn't the link below work
>
>
> echo "<a href
> ='/myweb2/more$i.php'onClick="window.open('/myweb2/more$i.php'
> ,'popup','width=645,height=450,resizable=1,scrollbars=no');return
> false;">
> more...</a>";
>
>
>
>
> "Peter" <newsaddress@saracenvsu.org.uk> wrote in message
> news:20020725205238.37974.qmail@pb1.pair.com...
> > You could also make a function to simplify things if you have lots of
> links
> >
> > function dolink($href, $text) {
> > $text = "<A HREF=\"$href\">$text</A>";
> > return $text;
> > }
> >
> > then calling
> > echo dolink("page1.php","Link to page 1");
> > would output a link to page1.php with the text Link to page 1
> >
> >
> >
> > "Tim Blackwell" <timblackwell@hotmail.com> wrote in message
> > news:20020725202617.8703.qmail@pb1.pair.com...
> > > how do you make a link using PHP it's very simple in html and
> javascript,
> > > but i can't seem to figure out how to make a simple link?
> > >
> > > i'm making a news site and would like to have enormous articles have a
> > nice
> > > little more...... link at the bottom of the first portion of the
> article.
> > >
> > > any help would be much appreciated,
> > >
> > > thanks,
> > >
> > > tim
> > >
> > >
> >
> >
>
>