Adam Hubscher [EMAIL PROTECTED] writes:
Problem: I would like to possibly utilize a login system (created on
the remote server), that would then check their username and password
against the CMS database located there, then redirect with that
information (encrypted of course), to the local
Andre wrote:
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?
You should check out the header() function.
http://www.php.net/header
There are some common pitfalls with this, most
I would prefer not having to use script - is there not a way to handle this
by modifying the header? Something similar to the example I found in the
O'Reilly book - except which works? :)
Martin Helie [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
How about simply:
echo
SCRIPT
BTW - I misquoted - the example below was in the PHP Cookbook (page 173) -
not in the MySQL Cookbook - my apologies...
Geoffrey Thompson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I would prefer not having to use script - is there not a way to handle
this
by modifying the header?
How about simply:
echo
SCRIPT
window.top.main.location= 'http://localhost/phase1/report.php'';
/SCRIPT;
?
Geoffrey Thompson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I was only able to find one reference to targeting a named frame on a
redirection, in the MySQL Cookbook
Finally,
Thanks to all that tried to help, but I found part of the problem - sort
of. In the file that I am trying to redirect to I have a form with the
line:
FORM onSubmit=return checkrequired(this) ACTION=season-write.php
action=post name=testing
It appears this line was corrupt
on 7/24/03 8:13 PM, Beauford.2005 at [EMAIL PROTECTED] wrote:
FORM onSubmit=return checkrequired(this) ACTION=season-write.php
action=post name=testing
someone else already raised this issue and it doesn't look like you caught
it: you have two actions in your form (the second should
:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 12:20 PM
To: PHP
Subject: Re: [PHP] Re: Redirection Question (I spoke to soon)
* Thus wrote Beauford.2005 ([EMAIL PROTECTED]):
Sorry all, apparently this doesn't work on either Windows or Linux.
Again, I thought it was working and once I got
-Original Message-
From: Ow Mun Heng [mailto:[EMAIL PROTECTED]
Sent: 23 July 2003 11:37
I'm confused..
quote
With $_SESSION, there is no need to use the session_register(),
session_unregister(), session_is_registered() functions. Session
variables are accessible like
* Thus wrote Ow Mun Heng ([EMAIL PROTECTED]):
Hi Curt,
I'm confused..
I'll try to clear this up for you. I'm going to see if I can get the
documentation on the web site fixed also. It is rather confusing.
There appears to be two ways to do sessions:
'---
Style
On Thursday 24 July 2003 11:37, Beauford.2005 wrote:
I found one of my problems and also implemented your suggestions, and
still the same thing. It will not redirect.
The problem I found is that $_SERVER['SERVER_NAME'] does not include the
port number. On my Win PC I am using port 800. So I
Errors are on and I get nothing, it won't even direct if I hard code
header(Location: www.microsoft.com);
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: July 23, 2003 12:48 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Redirection Question (I spoke to soon
You need the http://; ie. http://www.microsoft.com;
Beauford.2005 wrote:
Errors are on and I get nothing, it won't even direct if I hard code
header(Location: www.microsoft.com);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Finally,
Thanks to all that tried to help, but I found part of the problem - sort
of. In the file that I am trying to redirect to I have a form with the
line:
FORM onSubmit=return checkrequired(this) ACTION=season-write.php
action=post name=testing
It appears this line was corrupt somehow.
Thanks Mike.. You've been a GREAT help..
Cheers,
Mun Heng, Ow
H/M Engineering
Western Digital M'sia
DID : 03-7870 5168
-Original Message-
From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 7:01 PM
To: Ow Mun Heng; PHP
Subject: RE: [PHP] Re: Redirection
[mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 3:06 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Re: Redirection Question (I spoke to soon)
Errors are on and I get nothing, it won't even direct if I hard code
header(Location: www.microsoft.com);
-Original Message-
From: Jason Wong
Sorry all, apparently this doesn't work on either Windows or Linux.
Again, I thought it was working and once I got farther along I see that
it really wasn't. Basically what I get after I login is an empty screen.
Here is what I have :
This is the script that runs to see if the user is logged in.
Beauford.2005 wrote:
Sorry all, apparently this doesn't work on either Windows or Linux.
Again, I thought it was working and once I got farther along I see that
it really wasn't. Basically what I get after I login is an empty screen.
Here is what I have :
This is the script that runs to see if
??
-Original Message-
From: Ray Hunter [mailto:[EMAIL PROTECTED]
Sent: July 22, 2003 10:47 PM
To: Beauford.2005
Subject: Re: [PHP] Re: Redirection Question (I spoke to soon)
Try doing:
session_start();
$_SESSION['logged'] = True;
$_SESSION['user'] = $row['user'];
// you cant do
* Thus wrote Beauford.2005 ([EMAIL PROTECTED]):
Sorry all, apparently this doesn't work on either Windows or Linux.
Again, I thought it was working and once I got farther along I see that
it really wasn't. Basically what I get after I login is an empty screen.
Here is what I have :
This is
Beauford.2005 [EMAIL PROTECTED] wrote in message
news:[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
Renaldo,
Of course, I use:
?php
header('Location: http://www.whereIWantToGo.com');
?
A less simple way is to creatre an .htaccess file (Apache server)
redirect /MyCurrentWebDirectory http://www.whereIWantToGo.com
There is no slash at the end of that line. Careful,
John
Renaldo De Silva
use the:
? header(Location: http://www.whatever.com/whatever.php);
?
MAKE SURE header is used before any code that outputs anything, other wise
it won't work (as header sends additional HTTP header commands).
Alternatively the frameset could just be sent back to browser (i.e. make
your
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
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
how do you mean it echo in the login script
here is what I mean
do{
$product_type= $db-f(Product_Type);
$part_number = $db-f(Part_Search);
$make = $db-f(Make);
$model = $db-f(Model);
$model_year = $db-f(Model_Year);
$engine = $db-f(Engine);
session_register('array_of_selected_checkboxes');
Just use sessions! ;-)
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884
M. Ali [EMAIL PROTECTED] wrote in
...or echo some hidden inputs in the login form?
Julio Nobrega Trabalhando wrote:
session_register('array_of_selected_checkboxes');
Just use sessions! ;-)
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que tal um presentinho?
27 matches
Mail list logo