Re: [PHP] Redirection

2008-05-07 Thread Nathan Nobbe
On Wed, May 7, 2008 at 5:55 PM, Ben <[EMAIL PROTECTED]> wrote: > Is there a way to take all the variables, no matter what their names and > values are, from the parameters in a url and POST them to another URL so > that they don't show up in the address bar? I've noticed a huge increase > in > my

Re: [PHP] Redirection

2008-05-07 Thread TG
I believe you can use cURL to create POST requests. -TG - Original Message - From: "Ben" <[EMAIL PROTECTED]> To: php-general@lists.php.net Date: Wed, 7 May 2008 17:55:34 -0600 Subject: [PHP] Redirection > Is there a way to take all the variables, no matter what their names and > values

Re: [PHP] Redirection

2008-05-07 Thread Kyle Browning
Javascript can help you there. On May 7, 2008, at 4:55 PM, Ben wrote: Is there a way to take all the variables, no matter what their names and values are, from the parameters in a url and POST them to another URL so that they don't show up in the address bar? I've noticed a huge increase

Re: [PHP] Redirection with header (was Re: [PHP] Cookies and sent headers)

2007-08-20 Thread tedd
At 12:42 PM +0200 8/20/07, Wouter van Vliet / Interpotential wrote: Only thing I was trying to do was chip in my two cents. Again, I wasn't the one who originally asked the question and I certainly am not "friggen clueless". Maybe not, but you made some pretty clueless remarks -- like if you

Re: [PHP] Redirection with header (was Re: [PHP] Cookies and sent headers)

2007-08-20 Thread Wouter van Vliet / Interpotential
On 20/08/07, tedd <[EMAIL PROTECTED]> wrote: > > At 10:40 PM +0200 8/19/07, Wouter van Vliet / Interpotential wrote: > >What you're proposing, is to actually display some content on another > page > >then were the content is originally intended? I'm sorry, but I would > >consider that 'bad practice

Re: [PHP] Redirection with header (was Re: [PHP] Cookies and sent headers)

2007-08-19 Thread tedd
At 10:40 PM +0200 8/19/07, Wouter van Vliet / Interpotential wrote: What you're proposing, is to actually display some content on another page then were the content is originally intended? I'm sorry, but I would consider that 'bad practice'. To me, it makes perfect sense that you don't want to le

Re: [PHP] Redirection with header (was Re: [PHP] Cookies and sent headers)

2007-08-19 Thread Wouter van Vliet / Interpotential
What you're proposing, is to actually display some content on another page then were the content is originally intended? I'm sorry, but I would consider that 'bad practice'. To me, it makes perfect sense that you don't want to leave the user on the page where login was originally handled. For vario

Re: [PHP] Redirection with header (was Re: [PHP] Cookies and sent headers)

2007-08-19 Thread tedd
At 8:52 AM +0200 8/19/07, Otto Wyss wrote: In my case I could easilly do without redirection but just exit and fall back on the calling page. Yet I want to remove the login page from the browser history. Does the header function have the same effect? O. Wyss: Instead of messing with the us

Re: [PHP] Re: php redirection..

2006-12-16 Thread Casey Chu
I believe it's spelled non-sequitur. =) On 12/16/06, Jonesy <[EMAIL PROTECTED]> wrote: On Fri, 15 Dec 2006 21:07:44 -0800, Casey Chu wrote: > Well... They skip all 's, so they skip 's. Wow! You get The Prize for the best non sequitor of the day. Jonesy -- Marvin L Jones| jonz

[PHP] Re: php redirection..

2006-12-16 Thread Jonesy
On Fri, 15 Dec 2006 21:07:44 -0800, Casey Chu wrote: > Well... They skip all 's, so they skip 's. Wow! You get The Prize for the best non sequitor of the day. Jonesy -- Marvin L Jones| jonz | W3DHJ | linux 38.24N 104.55W | @ config.com | Jonesy | OS/2 *** K

Re: [PHP] Redirection after login with security

2005-04-11 Thread Richard Lynch
On Sun, April 10, 2005 7:48 pm, Adam Hubscher said: > In an attempt to provide the best way to limit the # of accounts per > person, I assumed that this could be accomplished by placing a dummy > value only used by the site itself that is the username/encoded password > for them on the community, a

Re: [PHP] Redirection after login with security

2005-04-11 Thread Jason Wong
On Monday 11 April 2005 10:48, Adam Hubscher wrote: There seems to be 2 issues here: > In an attempt to provide the best way to limit the # of accounts per > person, I assumed that this could be accomplished by placing a dummy > value only used by the site itself that is the username/encoded > pa

Re: [PHP] redirection, same host, two domains

2005-03-25 Thread Leif Gregory
Hello Alexandru, Friday, March 25, 2005, 9:36:12 AM, you wrote: AM> Okay, here is my problem. I had a site hosted on a sub domain AM> (mysite.domain.com) , now I registered my own domain, mysite.com . AM> The thing is mysite.com is still hosted on mysite.domain.com. What AM> i want to do is : If p

Re: [PHP] redirection, same host, two domains

2005-03-25 Thread Ken
On Fri, 25 Mar 2005 11:42:15 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Friday 25 March 2005 11:36, Alexandru Martin wrote: > > Okay, here is my problem. I had a site hosted on a sub domain > > (mysite.domain.com) , now I registered my own domain, mysite.com . The > > thing is mys

Re: [PHP] redirection, same host, two domains

2005-03-25 Thread maillists
On Friday 25 March 2005 11:36, Alexandru Martin wrote: > Okay, here is my problem. I had a site hosted on a sub domain > (mysite.domain.com) , now I registered my own domain, mysite.com . The > thing is mysite.com is still hosted on mysite.domain.com. What i want to > do is : If people type in

Re: [PHP] Re: PHP Redirection If Login Fails.

2004-07-09 Thread Harlequin
Thanks Jason. I think that's where I was falling down with this one. -- - Michael Mason Arras People www.arraspeople.co.uk - "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Friday 09 July 2004 18:37, Harleq

Re: [PHP] Re: PHP Redirection If Login Fails.

2004-07-09 Thread Jason Wong
On Friday 09 July 2004 18:37, Harlequin wrote: > Here's the code in question: I'd ideally want the user to only be directed > to this page if login is successful. Directed to another page if > unsuccessful but even the error messages do not display which I find > strange... [snip] >else /

[PHP] Re: PHP Redirection If Login Fails.

2004-07-09 Thread Harlequin
Here's the code in question: I'd ideally want the user to only be directed to this page if login is successful. Directed to another page if unsuccessful but even the error messages do not display which I find strange... /* Verify Login */ $sql = "SELECT UserFirstName,UserID,UserPassword,FurtherC

Re: [PHP] redirection with PHP and closing windows?

2004-04-21 Thread -{ Rene Brehmer }-
According to historical records, on Tue, 20 Apr 2004 23:02:50 -0500 Andre wrote about "[PHP] redirection with PHP and closing windows?": >I want to be able to process a PHP script and then if successful redirect to >another page. Is there a good way to do this with PHP or do I need to stick >to Ja

RE: [PHP] Redirection Question

2003-07-23 Thread Ow Mun Heng
rn Digital M'sia DID : 03-7870 5168 -Original Message- From: Beauford.2005 [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 8:55 AM To: 'PHP' Subject: RE: [PHP] Redirection Question Thanks to all, I got it working - sort of. It works perfectly on Windows, but will

Re: [PHP] Redirection Question

2003-07-22 Thread John W. Holmes
Beauford.2005 wrote: Hi, I am trying to figure out how to redirect a user back to a page but not having much luck. For example: I click on a menu item on my site which goes to a.php. This file includes another file that determines if they are logged in or not. If not, they are sent to login.php

RE: [PHP] Redirection Question

2003-07-22 Thread Beauford.2005
makes it a real pain. Oh well, back to my debugging. -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: July 22, 2003 7:04 PM To: PHP Subject: Re: [PHP] Redirection Question * Thus wrote Beauford.2005 ([EMAIL PROTECTED]): > Maybe I didn't explain enough. What

RE: [PHP] Redirection Question

2003-07-22 Thread Beauford.2005
4:16 PM To: PHP Subject: Re: [PHP] Redirection Question * Thus wrote Beauford.2005 ([EMAIL PROTECTED]): > Hi, > > I am trying to figure out how to redirect a user back to a page but > not having much luck. > > For example: I click on a menu item on my site which goes to a.php

Re: [PHP] Redirection Question

2003-07-22 Thread Curt Zirzow
* Thus wrote Beauford.2005 ([EMAIL PROTECTED]): > Maybe I didn't explain enough. What if they come from b.php or c.php. > How do I automatically log what page they tried to access. So hard > coding login.php?next=a.php would only work for one page. Use the code that Grant Rutherford posted earlier

Re: [PHP] Redirection Question

2003-07-22 Thread Kevin Stone
So hard > coding login.php?next=a.php would only work for one page. > > TIA > > -Original Message- > From: Curt Zirzow [mailto:[EMAIL PROTECTED] > Sent: July 22, 2003 4:16 PM > To: PHP > Subject: Re: [PHP] Redirection Question > > > * Thus wrote Beauford.

RE: [PHP] Redirection Question

2003-07-22 Thread Beauford.2005
Nope. What if it's b.php, or c.php. They could come from many pages. I wish it was that easy. -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: July 22, 2003 4:02 PM To: Beauford.2005 Subject: RE: [PHP] Redirection Question Beauford.2005 <mailto:[EMAIL P

Re: [PHP] Redirection Question

2003-07-22 Thread Ray Hunter
Use sessions or cookies to store the first page they are trying to access. Then if not logged in redirect them to the login.php page. After login is successful then they can be redirected to the values that was specified in the cookie or seesion variable. -- BigDog On Wed, 2003-07-23 at 13:44,

Re: [PHP] Redirection Question

2003-07-22 Thread Curt Zirzow
* Thus wrote Beauford.2005 ([EMAIL PROTECTED]): > Hi, > > I am trying to figure out how to redirect a user back to a page but not > having much luck. > > For example: I click on a menu item on my site which goes to a.php. This > file includes another file that determines if they are logged in or

Re: [PHP] Redirection Question

2003-07-22 Thread Grant Rutherford
Hello there, I had the same problem, and to solve it I put the following code in my "check login" include file: // code to detect no login session_start(); session_register('target'); $_SESSION['target'] = "http://"; . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; header("Lo

Re: [PHP] Redirection

2002-09-23 Thread -=| Julien Bonastre |=-
gt; To: "Sascha Braun" <[EMAIL PROTECTED]> Cc: "PHP Mailingliste" <[EMAIL PROTECTED]> Sent: Monday, September 23, 2002 10:22 AM Subject: Re: [PHP] Redirection > Sascha Braun wrote: > > >I want to post a form and after parsing i want to redirect the user to the h

Re: [PHP] Redirection

2002-09-22 Thread Sascha Cunz
And also avoid including scripts that contain a linebreak or a space after any '?>'. When I did this first time, it took me ages to find out what was wrong... :-) Sascha Am Montag, 23. September 2002 02:07 schrieb Justin French: > Validate the input BEFORE outputting anything to the browser...

Re: [PHP] Redirection

2002-09-22 Thread Chris Shiflett
Sascha Braun wrote: >I want to post a form and after parsing i want to redirect the user to the home page. > >header() doesn't work in this circumstance, what can I do else? > header() does work in this circumstance. In what way do you think it doesn't? header("Location: http://www.google.com/

Re: [PHP] Redirection

2002-09-22 Thread Justin French
Validate the input BEFORE outputting anything to the browser... this way you have control over such problems. The code below exit; will only be executed if the input was NOT valid Regards, Justin on 23/09/02 9:42 AM, Sascha Braun ([EMAIL PROTECTED]) wrote: > Hi, > > I want to po

Re: [PHP] Redirection

2002-09-22 Thread Todd Pasley
I use http://place.to.redirect.to> Todd. - Original Message - From: "Sascha Braun" <[EMAIL PROTECTED]> To: "PHP Mailingliste" <[EMAIL PROTECTED]> Sent: Monday, September 23, 2002 9:42 AM Subject: [PHP] Redirection Hi, I want to post a form and after parsing i want to redirect the

RE: [PHP] redirection

2002-06-05 Thread Jay Blanchard
[snip] I think that's pretty much your only option. You could use javascript to redirect if you wanted. > is there any way other than > > header("Location: http://www.php.net/";); > > to redirect to another page. [/snip] Using the switch() function that I showed before here is what I have done..

RE: [PHP] redirection

2002-06-05 Thread Martin Clifford
You can pretty much use ANY JavaScript event handler to accomplish the redirection. I'm new to PHP, so the header is the only place I know of to redirect. onclick onmouseup onmousedown onmouseover onmousemove onkeydown onkeypress onkeyup onchange etc. -- PHP General Mailing List (http://www.

RE: [PHP] redirection

2002-06-05 Thread Ray Hunter
You can also set up redirects in your web server as well... Thank you, RAY HUNTER -Original Message- From: Renaldo De Silva [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 12:45 PM To: [EMAIL PROTECTED] Subject: [PHP] redirection is there any way other than header("Loca

RE: [PHP] redirection

2002-06-05 Thread Leotta, Natalie (NCI/IMS)
You can use JavaScript: document.location="URL"; You can do that in an onClick (make sure that it's not a type submit, just a type button if you're using a button). -Natalie -Original Message- From: Renaldo De Silva [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 2:45 PM To:

Re: [PHP] redirection

2002-06-05 Thread Tyler Longren
I think that's pretty much your only option. You could use javascript to redirect if you wanted. Tyler Longren Captain Jack Communications www.captainjack.com [EMAIL PROTECTED] - Original Message - From: "Renaldo De Silva" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, Jun

Re: [PHP] redirection

2002-04-28 Thread David Freeman
On 28 Apr 2002 at 19:11, Norman Zhang wrote: > I want to set up a check that the page cannot be exacted by calling from > another page. E.g., members.php can only be excited if it called by > login.php. If your login page does some sort of authentication and then either sets a cookie or a sessi

Re: [PHP] redirection

2002-04-28 Thread Jason Wong
On Monday 29 April 2002 10:11, Norman Zhang wrote: > Hi, > > I want to set up a check that the page cannot be exacted by calling from > another page. E.g., members.php can only be excited if it called by > login.php. > > So I set > > if (eregi("members.php", $_SERVER['PHP_SELF'])) Header("Location

Re: [PHP] redirection rather than include()

2002-02-01 Thread Graeme Bailey
G'day Martin, I'm new to PHP too, and I'm working on the same sort of problem... I had some success with something like this... //- Location chosen = Location $n"); //debugging switch($n){ case 0: $location = "http://www.xyz.com/";; break;

RE: [PHP] redirection rather than include()

2002-01-31 Thread Martin Towell
use: { header("location: new_full_url_here"); exit; } -Original Message- From: Benjamin deRuyter [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 9:42 AM To: PHP Subject: [PHP] redirection rather than include() This is a PHP newbie trying to figure something out. I am creatin

Re: [PHP] Redirection in PHP ? (newbie)

2001-05-14 Thread Chris Adams
On 14 May 2001 16:54:49 -0700, Nicolas Mermet <[EMAIL PROTECTED]> wrote: > To avoid spamming my db I would like to implement a simple redirection > function, that would redirect the user to the main admin page once the > feeding script has successfully executed and would reduce chances of > double

Re: [PHP] Redirection in PHP ? (newbie)

2001-05-14 Thread Ethan Schroeder
header("Location: page.phtml"); http://www.php.net/manual/en/function.header.php Ethan Schroeder - Original Message - From: "Nicolas Mermet" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 14, 2001 6:57 PM Subject: [PHP] Redirection in PHP ? (newbie) > Hi, this might be

Re: [PHP] redirection to another page function

2001-04-23 Thread James Holloway
One thing that doesn't seem to have been considered is the use of the "refresh" meta tag. Whilst it depends on whether or not the browser is archaic (and let's face it, most people nowadays seem to be running at least version 4 of either IE or Netscape), it's something that can't be turned off (a

Re: [PHP] redirection to another page function

2001-04-22 Thread Adam
use the javascript function, but also use as backup plan such as a link at the bottom or even code at the top like this: /// if (conditionals == true) { header("location:home.html"); } // that wa

RE: [PHP] redirection to another page function

2001-04-22 Thread Christian Dechery
At 12:48 23/4/2001 +1000, Chris Aitken wrote: >At 11:40 PM 22/04/2001, you wrote: > >>I justed pointed out that it could work nicely... and I just tought of >>that... I user header("location: ... ") on all my scripts and struggle to >>put them before any output (that's not easy)... >>I work on a

RE: [PHP] redirection to another page function

2001-04-22 Thread Christian Dechery
At 12:42 23/4/2001 +1000, you wrote: > > I work on a e-commerce website (coding in ASP, but what can I > > do?) with lots of JavaScript calls that in some cases are the heart > > of the operation, and we never had any trouble or complaints with it. > >I want your job. I don't think u do. :) ASP s

RE: [PHP] redirection to another page function

2001-04-22 Thread Chris Aitken
At 11:40 PM 22/04/2001, you wrote: >I justed pointed out that it could work nicely... and I just tought of >that... I user header("location: ... ") on all my scripts and struggle to >put them before any output (that's not easy)... >I work on a e-commerce website (coding in ASP, but what can I d

RE: [PHP] redirection to another page function

2001-04-22 Thread Jason Murray
> I work on a e-commerce website (coding in ASP, but what can I > do?) with lots of JavaScript calls that in some cases are the heart > of the operation, and we never had any trouble or complaints with it. I want your job. We have people complain every time we set a cookie. Imagine the fuss w

RE: [PHP] redirection to another page function

2001-04-22 Thread Christian Dechery
At 12:22 23/4/2001 +1000, Chris Aitken wrote: >At 11:15 PM 22/04/2001, Christian Dechery wrote: > >>Yeah... I know that... but, c'mon... a browser that doesn't support >>Javascript can't surf trough at least 30% of all websites... it's the >>absolute minority. Netscape itself is a minority. > >W

RE: [PHP] redirection to another page function

2001-04-22 Thread Chris Aitken
At 11:15 PM 22/04/2001, Christian Dechery wrote: >Yeah... I know that... but, c'mon... a browser that doesn't support >Javascript can't surf trough at least 30% of all websites... it's the >absolute minority. Netscape itself is a minority. While its true Netscape is a minority, and browsers no

RE: [PHP] redirection to another page function

2001-04-22 Thread Jason Murray
> Yeah... I know that... but, c'mon... a browser that doesn't support > Javascript can't surf trough at least 30% of all websites... it's the > absolute minority. Netscape itself is a minority. That's not the point. You should be writing the code such that you shouldn't need to make this kind

RE: [PHP] redirection to another page function

2001-04-22 Thread Christian Dechery
At 11:56 23/4/2001 +1000, you wrote: > > I never had any trouble using header() to redirect, but > > wouldn't something like this work even better (without > > worring about previous outputs)?? > > > > function redirect($dest) > > { > > ?> > > > > parent.locatio

RE: [PHP] redirection to another page function

2001-04-22 Thread Jason Murray
> I never had any trouble using header() to redirect, but > wouldn't something like this work even better (without > worring about previous outputs)?? > > function redirect($dest) > { > ?> > > parent.location.href=''; > > } > >

RE: [PHP] redirection to another page function

2001-04-22 Thread Christian Dechery
At 11:22 23/4/2001 +1000, Jason Murray wrote: > > Is there any PHP native function to redirect to another page or URL? > >No, because you can only redirect a browser to another page using the >appropriate HTTP command (it is a header) or JavaScript. > > > I would like that once the user clicks on

RE: [PHP] redirection to another page function

2001-04-22 Thread Jason Murray
> Is there any PHP native function to redirect to another page or URL? No, because you can only redirect a browser to another page using the appropriate HTTP command (it is a header) or JavaScript. > I would like that once the user clicks on home.php4 and a few > verifications are done, he/she

RE: [PHP] redirection to another page function

2001-04-22 Thread Tyler Longren
header ("Location: http://www.location.com/home.html"); > -Original Message- > From: Carlos Fernando Scheidecker Antunes [mailto:[EMAIL PROTECTED]] > Sent: Sunday, April 22, 2001 8:19 PM > To: PHP-GENERAL > Subject: [PHP] redirection to another page function > Importance: High > > > Hel

Re: [PHP] Redirection II

2001-04-21 Thread Wade
I got it! :-) ""Wade"" <[EMAIL PROTECTED]> wrote in message 9bsudp$g23$[EMAIL PROTECTED]">news:9bsudp$g23$[EMAIL PROTECTED]... > I am submitting a form to a PHP page. I would like to check the form > variables before I load the page, and redirect them to another page if they > variables are incor

Re: [PHP] redirection

2001-04-21 Thread Sigitas Paulavicius
header("Location: http://any.URL/you/need") NOTE: header must be sent prior to any output. Otherwise this won't work and a warning will be issued. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] redirection

2001-04-21 Thread KPortsmout
In a message dated 21/04/2001 15:31:36 GMT Daylight Time, [EMAIL PROTECTED] writes: << How to redirect to another page in php. Is there any inbuilt function available for redirection. If possible send with example. Thanks kishor >> Use the Header call,for more info see www.php.net an

Re: [PHP] redirection

2001-04-21 Thread Jason Brooke
header("Location: http://your.dom/file"); - Original Message - From: "Kishore" <[EMAIL PROTECTED]> To: "phpgeneral" <[EMAIL PROTECTED]> Sent: Saturday, April 21, 2001 11:28 PM Subject: [PHP] redirection > How to redirect to another page in php. Is there any inbuilt function > availabl