Re: Session Not Being Passed?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/19/06, Richard Lynch <ceo@xxxxxxxxx> wrote:

On Thu, May 18, 2006 9:23 pm, Mark Sargent wrote:
> <title>Movie 1</title>
> </head>
> <body>
> <?php
>     $favMovie=urlencode("Life Of Brian");
>     echo "<a
> href='http://localhost/moviesite.php?favMovie=$favMovie'>";

Errr.

localhost is going to end up being THEIR localhost, which is, like,
their own computer where the browser is, which is very very very
unlikely to have your moviesite.php script on it, if you see what I
mean...

Unless YOU are running this on your own desktop or something.


I almost never use a server name for this reason.  If you simply use an
absolute path, it'll point to whatever machine (local dev, live server,
etc...) it happens to be running on without you having to care.

i.e. <a href='/moviesite.php?favMovie=$favMovie'>

--
Scott Hurring [scott dot hurring dot lists at gmail dot com]
http://hurring.com/

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux