Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Does anyone know the equivilant


Message #1 by "Monique Angelich" <mangelich@m...> on Thu, 27 Sep 2001 13:01:54 -0400
Does anyone know how to do this in php?



example:



dim url

url=request.querystring("url")



response.write(url)



I know.. it is stupid and simple.. just need a combo solution, same site,

unix and NT servers.



Message #2 by Mark Eckeard <meckeard2000@y...> on Thu, 27 Sep 2001 10:03:03 -0700 (PDT)
Monique,



You don't have to request a variable in PHP.

They are passed automatically.



Mark.

--- Monique Angelich <mangelich@m...> wrote:

> Does anyone know how to do this in php?

> 

> example:

> 

> dim url

> url=request.querystring("url")

> 

> response.write(url)

> 

> I know.. it is stupid and simple.. just need a combo

> solution, same site,

> unix and NT servers.
Message #3 by "Monique Angelich" <mangelich@m...> on Thu, 27 Sep 2001 14:24:38 -0400
Ok.. I meant syntax..



But that is possible to do then?? know any good PHP learning websites?

----- Original Message -----

From: "Mark Eckeard" <meckeard2000@y...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Thursday, September 27, 2001 1:03 PM

Subject: [asp_web_howto] Re: Does anyone know the equivilant





> Monique,

>

> You don't have to request a variable in PHP.

> They are passed automatically.

>

> Mark.

> --- Monique Angelich <mangelich@m...> wrote:

> > Does anyone know how to do this in php?

> >

> > example:

> >

> > dim url

> > url=request.querystring("url")

> >

> > response.write(url)

> >

> > I know.. it is stupid and simple.. just need a combo

> > solution, same site,

> > unix and NT servers.
Message #4 by "phil griffiths" <pgtips@m...> on Fri, 28 Sep 2001 09:50:52
PHP would automatically create a global variable called 'url' for you, so 

all you would need to do is write it out using:

 echo $url;



If you wanted to do this within a function you would need to explicitly 

tell PHP that you wanted to use the global variable, so you would need to 

add this at the start of your function:

global $url;



Take a look at www.php.net, this is the main PHP site which has a basic 

tutorial, plus full reference material and links to other PHP sites.



> Ok.. I meant syntax..

> 

> But that is possible to do then?? know any good PHP learning websites?


  Return to Index