how to redirect to a path( a string variable )
how to redirect to a path( a string variable )
am 31.10.2007 11:43:06 von dgs
Hi , I am new to php.
i want to redirect a request to a page on my localhost, with some
parameters. how do i do that in php?
i was able to do that in javascript by using "window.location= path"
i tried with cURL, but failed.
Is there any other method ? or what may be likely mistake in my code.
Thanx in advance....
Re: how to redirect to a path( a string variable )
am 31.10.2007 12:01:30 von Jerry Stuckle
dgs wrote:
> Hi , I am new to php.
>
> i want to redirect a request to a page on my localhost, with some
> parameters. how do i do that in php?
>
> i was able to do that in javascript by using "window.location= path"
>
> i tried with cURL, but failed.
> Is there any other method ? or what may be likely mistake in my code.
>
> Thanx in advance....
>
>
The easiest way is just to use the header() function.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Re: how to redirect to a path( a string variable )
am 31.10.2007 12:04:30 von luiheidsgoeroe
On Wed, 31 Oct 2007 11:43:06 +0100, dgs wrote:
> Hi , I am new to php.
>
> i want to redirect a request to a page on my localhost, with some
> parameters. how do i do that in php?
Redirect the visitor (http://www,php.net/header), or get data from
somewhere and else show that to the visitor (file_get_contents,curl or
http://www.php.net/virtual, or other..)?
--
Rik Wasmus
Re: how to redirect to a path( a string variable )
am 31.10.2007 13:13:06 von dgs
On Oct 31, 4:04 pm, "Rik Wasmus" wrote:
> On Wed, 31 Oct 2007 11:43:06 +0100, dgs wrote:
> > Hi , I am new to php.
>
> > i want to redirect a request to a page on my localhost, with some
> > parameters. how do i do that in php?
>
> Redirect the visitor (http://www,php.net/header), or get data from
> somewhere and else show that to the visitor (file_get_contents,curl or http://www.php.net/virtual, or other..)?
> --
> Rik Wasmus
Thanx for helping me out....
Now my code is working...Thanx a lot
Re: how to redirect to a path( a string variable )
am 31.10.2007 13:13:25 von dgs
On Oct 31, 4:01 pm, Jerry Stuckle wrote:
> dgs wrote:
> > Hi , I am new to php.
>
> > i want to redirect a request to a page on my localhost, with some
> > parameters. how do i do that in php?
>
> > i was able to do that in javascript by using "window.location= path"
>
> > i tried with cURL, but failed.
> > Is there any other method ? or what may be likely mistake in my code.
>
> > Thanx in advance....
>
> The easiest way is just to use the header() function.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================
Thanx for helping me out....
Now my code is working...Thanx a lot