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
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 are,
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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 //
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
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
'
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
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
=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
* 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,
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
). 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
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
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'];
* 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.
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,
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
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 and
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
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/;);
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...
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, June 05,
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:
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
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
[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...
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,
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
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 index stored in variable $n
//print(brLocation chosen = Location $n); //debugging
switch($n){
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
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
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
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
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
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"
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
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
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
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
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.
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
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
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
available for
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
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
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 incorrect
59 matches
Mail list logo