[PHP] Redirection

2008-05-07 Thread Ben
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 bounce rate since I added some tracking parameters to my urls, but I

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

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 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 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'. To me,

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

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

2007-08-19 Thread Otto Wyss
M. Sokolewicz wrote: emits). Now, I'm not going to go into how redirecting that way won't work (or at least shouldn't), but a hint would be to do it properly using header('Location: [...]') instead. I'm aware that using Javascript within a PHP code block doesn't seems logical yet I haven't

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

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

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

Re: [PHP] php redirection..

2006-12-18 Thread Richard Lynch
On Sat, December 16, 2006 5:58 am, Stut wrote: Casey Chu wrote: Well... They skip all !-- --'s, so they skip script!-- //--/script's. And you *know* this how? They may well skip comments in terms of what content actually gets indexed, but I would expect their indexer is smart enough to

Re: [PHP] php redirection..

2006-12-18 Thread Richard Lynch
On Mon, December 18, 2006 12:08 am, Chris Shiflett wrote: Richard Lynch wrote: The old school HTTP-EQUIV of a refresh with a time and URL would probably be suitable for this. YMMV And it's still not PHP. :-) It is if you use header(). :-) You mean Refresh is a real header? I always

Re: [PHP] php redirection..

2006-12-18 Thread Chris Shiflett
Richard Lynch wrote: You mean Refresh is a real header? Yeah, although if I remember correctly, the W3C really dislikes people using it for redirection instead of just refreshing the current URL. If that's the case, however, why can we indicate the URL at all? :-) A few years ago, someone

Re: [PHP] php redirection..

2006-12-17 Thread Chris Shiflett
Tim wrote: Considering bruce wants to be able to display the data and then change location after a given time, and as stut said you can't do this with a header() as it redirects before output Sure you can. Just use a Refresh header instead of Location. Chris -- Chris Shiflett

Re: [PHP] php redirection..

2006-12-17 Thread Chris Shiflett
Richard Lynch wrote: The old school HTTP-EQUIV of a refresh with a time and URL would probably be suitable for this. YMMV And it's still not PHP. :-) It is if you use header(). :-) Chris -- Chris Shiflett http://shiflett.org/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] php redirection..

2006-12-16 Thread Stut
Casey Chu wrote: Well... They skip all !-- --'s, so they skip script!-- //--/script's. And you *know* this how? They may well skip comments in terms of what content actually gets indexed, but I would expect their indexer is smart enough to parse HTML comments in a script block as though it

[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 script!-- //--/script'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

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 script!-- //--/script's. Wow! You get The Prize for the best non sequitor of the day. Jonesy -- Marvin L

RE: [PHP] php redirection..

2006-12-15 Thread Richard Lynch
:[EMAIL PROTECTED] Sent: Thursday, December 14, 2006 8:40 AM To: 'PHP General List' Subject: RE: [PHP] php redirection.. Better to do this on the client side with JS html head titleRedirect Test/title script language=JavaScript function redirect() { location.href='http

Re: [PHP] php redirection..

2006-12-15 Thread Richard Lynch
On Tue, December 12, 2006 12:51 pm, Stut wrote: bruce wrote: hey stut... Please don't reply to me directly, always include the mailing list. thanks for the reply... i did get some output... i also have a question as to why i couldn't get it to work when i used 'header (foo.php)' 1) The

Re: [PHP] php redirection..

2006-12-15 Thread Richard Lynch
On Wed, December 13, 2006 9:41 pm, Casey Chu wrote: Search Engines don't like the META tag. Use scriptlocation.href='foobar.php';/scripta href='foobar.php'Foo Bar/a If the search engine authors are not smart enough to make the META tag and this JS snippet the same in their evaluation of the

Re: [PHP] php redirection..

2006-12-15 Thread Casey Chu
Actually... Search engines don't have a JavaScript interpreter. On 12/15/06, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, December 12, 2006 12:51 pm, Stut wrote: bruce wrote: hey stut... Please don't reply to me directly, always include the mailing list. thanks for the reply... i did

Re: [PHP] php redirection..

2006-12-15 Thread Richard Lynch
On Fri, December 15, 2006 10:28 pm, Casey Chu wrote: Actually... Search engines don't have a JavaScript interpreter. Actually... You don't know for sure that Google isn't using Perl's javascript interpreter. Unless you work for Google, have just told us something they would consider

Re: [PHP] php redirection..

2006-12-15 Thread Casey Chu
Well... They skip all !-- --'s, so they skip script!-- //--/script's. On 12/15/06, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, December 15, 2006 10:28 pm, Casey Chu wrote: Actually... Search engines don't have a JavaScript interpreter. Actually... You don't know for sure that Google

RE: [PHP] php redirection..

2006-12-14 Thread bruce
that this acts in a similar manner to the 'header' function as well... -Original Message- From: Budi Setiawan [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 13, 2006 9:33 PM To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] php redirection.. basically: cat.php

Re: [PHP] php redirection..

2006-12-14 Thread Youri LACAN-BARTLEY
Budi Setiawan wrote: basically: cat.php -echo test contentbr -echo more test contentbr //redirect user echo script location.href='foo.php'; /script ; Hi , im a new too.. but you can try with this to delay your script running for some seconds : echo test

RE: [PHP] php redirection..

2006-12-14 Thread Brad Fuller
-Original Message- From: Youri LACAN-BARTLEY [mailto:[EMAIL PROTECTED] Sent: Thursday, December 14, 2006 10:44 AM To: PHP General List Subject: Re: [PHP] php redirection.. Budi Setiawan wrote: basically: cat.php -echo test contentbr -echo more test contentbr //redirect

RE: [PHP] php redirection..

2006-12-14 Thread bruce
having the user hitting some 'submit' button. thanks! -Original Message- From: Brad Fuller [mailto:[EMAIL PROTECTED] Sent: Thursday, December 14, 2006 8:40 AM To: 'PHP General List' Subject: RE: [PHP] php redirection.. Better to do this on the client side with JS html head titleRedirect

RE: [PHP] php redirection..

2006-12-14 Thread Brad Fuller
-Original Message- From: bruce [mailto:[EMAIL PROTECTED] Sent: Thursday, December 14, 2006 12:08 PM To: 'Brad Fuller'; 'PHP General List' Subject: RE: [PHP] php redirection.. all these are solid posts... however, the original posting, was not to do a redirect on the page being

Re: [PHP] php redirection..

2006-12-13 Thread Youri LACAN-BARTLEY
will happen after 2 seconds. Good luck Bruce Regards, Tim -Message d'origine- De : Stut [mailto:[EMAIL PROTECTED] Envoyé : mardi 12 décembre 2006 19:52 À : [EMAIL PROTECTED] Cc : php Objet : Re: [PHP] php redirection.. bruce wrote: hey stut... Please don't reply to me directly

RE: [PHP] php redirection..

2006-12-13 Thread Tim
-Message d'origine- De : Youri LACAN-BARTLEY [mailto:[EMAIL PROTECTED] Envoyé : mercredi 13 décembre 2006 09:09 Cc : 'php' Objet : Re: [PHP] php redirection.. Tim wrote: Just a quick question regarding this issue. Considering bruce wants to be able to display the data

RE: [PHP] php redirection..

2006-12-13 Thread tedd
At 9:02 PM +0100 12/12/06, Tim wrote: Just a quick question regarding this issue. Considering bruce wants to be able to display the data and then change location after a given time, and as stut said you can't do this with a header() as it redirects before output, I would have imagined a dynamic

Re: [PHP] php redirection..

2006-12-13 Thread Casey Chu
Search Engines don't like the META tag. Use scriptlocation.href='foobar.php';/scripta href='foobar.php'Foo Bar/a On 12/13/06, tedd [EMAIL PROTECTED] wrote: At 9:02 PM +0100 12/12/06, Tim wrote: Just a quick question regarding this issue. Considering bruce wants to be able to display the data

Re: [PHP] php redirection..

2006-12-13 Thread Budi Setiawan
basically: cat.php -echo test contentbr -echo more test contentbr //redirect user echo script location.href='foo.php'; /script ; Hi , im a new too.. but you can try with this to delay your script running for some seconds : echo test contentbr echo more test contentbr //

Re: [PHP] php redirection..

2006-12-13 Thread Casey Chu
It's usually OK if it's 8 seconds or more, but that would take too long. See here for info: http://www.netmechanic.com/news/vol4/promo_no15.htm On 12/13/06, Budi Setiawan [EMAIL PROTECTED] wrote: basically: cat.php -echo test contentbr -echo more test contentbr //redirect user

[PHP] php redirection..

2006-12-12 Thread bruce
hi... i have what should be a pretty simple question that i'm obviously missing something for... i want to be able to display some text/content and to then redirect the user to another page. basically: cat.php -echo test contentbr -echo more test contentbr //redirect user echo script

Re: [PHP] php redirection..

2006-12-12 Thread Stut
bruce wrote: i want to be able to display some text/content and to then redirect the user to another page. basically: cat.php -echo test contentbr -echo more test contentbr //redirect user echo script location.href='foo.php'; /script ; --- foo.php -echo i'm here

Re: [PHP] php redirection..

2006-12-12 Thread Stut
-Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 12, 2006 9:21 AM To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] php redirection.. bruce wrote: i want to be able to display some text/content and to then redirect the user to another

RE: [PHP] php redirection..

2006-12-12 Thread Tim
: [PHP] php redirection.. bruce wrote: hey stut... Please don't reply to me directly, always include the mailing list. thanks for the reply... i did get some output... i also have a question as to why i couldn't get it to work when i used 'header (foo.php)' 1) The correct way

RE: [PHP] php redirection..

2006-12-12 Thread Tim
: [PHP] php redirection.. bruce wrote: hey stut... Please don't reply to me directly, always include the mailing list. thanks for the reply... i did get some output... i also have a question as to why i couldn't get it to work when i used 'header (foo.php)' 1) The correct way

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

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, and

[PHP] Redirection after login with security

2005-04-10 Thread Adam Hubscher
Synopsis: I am writing a management system for a MSSql database driven game, and I've run into an issue. The community site is located on a remote webserver, to protect the actual server from any possible vulnerabilities in the community application/forum application (as we all have seen the

[PHP] redirection, same host, two domains

2005-03-25 Thread Alexandru Martin
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 their browsers mysite.domain.com redirect to mysite.com

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] 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 mysite.com

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

[PHP] PHP Redirection If Login Fails.

2004-07-09 Thread Harlequin
Hi all I've created a page that allows registered users who have previously registered and been entered into the database to login. However, for some reason if a user login fails my code does not display the appropriate error message. Ideally I would like the users to be redirected to another

[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

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 //

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, Harlequin

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

[PHP] redirection with PHP and closing windows?

2004-04-20 Thread Andre
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 Javascript? Also, is it possible to close a window that is running a .PHP page via a link or again, just stuck with Javascript? TIA!! Andre

[PHP] Redirection to a named frame

2004-01-02 Thread Geoffrey Thompson
I was only able to find one reference to targeting a named frame on a redirection, in the MySQL Cookbook by O'Reilly. According to the book, this should work: header('Window-target: main'); header('Location: http://localhost/phase1/report.php'); But, alas, it seems to only load up the current

RE: [PHP] Redirection Question

2003-07-23 Thread Ow Mun Heng
' Subject: RE: [PHP] Redirection Question Thanks to all, I got it working - sort of. It works perfectly on Windows, but will not work on Linux. I am using the same versions of PHP, Apache and MySQL on both. I have asked this before and have been told they are interchangeable, but more times than not I

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 PROTECTED

Re: [PHP] Redirection Question

2003-07-22 Thread Kevin Stone
=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.2005 ([EMAIL PROTECTED]): Hi, I am trying to figure out how to redirect a user

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 Beauford.2005
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. This file includes another

RE: [PHP] Redirection Question

2003-07-22 Thread Beauford.2005
). This 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 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

[PHP] Redirection Question

2003-07-22 Thread Beauford.2005
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 using

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'];

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 not.

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

2002-09-23 Thread -=| Julien Bonastre |=-
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 home page. header() doesn't work in this circumstance, what can I do else? header() does work

[PHP] Redirection

2002-09-22 Thread Sascha Braun
Hi, 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? Greetings Sascha

Re: [PHP] Redirection

2002-09-22 Thread Todd Pasley
I use meta http-equiv=refresh content=DELAY;url=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

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. ? // validate // code // here if($valid) { header(...); exit; } ? HTML ? if(!$valid) { echo error on form; } ? /HTML The code below exit; will only be

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 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...

[PHP] redirection

2002-06-05 Thread Renaldo De Silva
is there any way other than header(Location: http://www.php.net/;); to redirect to another page. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] redirection

2002-06-05 Thread Tyler Longren
, 2002 1:45 PM Subject: [PHP] redirection is there any way other than header(Location: http://www.php.net/;); to redirect to another page. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http

RE: [PHP] redirection

2002-06-05 Thread Leotta, Natalie (NCI/IMS)
To: [EMAIL PROTECTED] Subject: [PHP] redirection is there any way other than header(Location: http://www.php.net/;); to redirect to another page. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http

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

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

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...

[PHP] redirection

2002-04-28 Thread Norman Zhang
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, login.php); at the very top of members.php. But I am being

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

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 session

Re: [PHP] redirection rather than include()

2002-02-01 Thread Graeme Bailey
[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 creating a web-app which begins with a login page and goes through the typical user/pass validation and upon

[PHP] redirection rather than include()

2002-01-31 Thread Benjamin deRuyter
This is a PHP newbie trying to figure something out. I am creating a web-app which begins with a login page and goes through the typical user/pass validation and upon success moves to a frameset where the application will run. The action of the login form is act_login.php. In that script I

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 creating

[PHP] Redirection and Passing Data (arrays)

2002-01-15 Thread m. ali
hi may can some body help me I'm writing a shopping cart system where the user can search for a product. the search result is a page with number of items where the user can select some them using checkboxes and enter the quantity that he needs, then add them to his shopping cart this works

[PHP] Redirection in PHP ? (newbie)

2001-05-14 Thread Nicolas Mermet
Hi, this might be a trivial question but I could not find any docs on that on php.net. I am develloping the admin side of a dynamic web site (php/mysql). The mechanic is nothing special: a form is submitted and sends the data to the php page/script that actually does the work of feeding the db.

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 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 (at

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 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 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) { ? script language="JavaScript"

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 of

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 not

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. While its

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

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 sux.

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 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 way

[PHP] redirection

2001-04-21 Thread Kishore
How to redirect to another page in php. Is there any inbuilt function available for redirection. If possible send with example. Thanks kishor -- 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 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 a

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 and

  1   2   >