Re: [PHP-DB] another redirecting question

2003-06-05 Thread Jason Wong
On Friday 30 May 2003 23:11, Ovaltine wrote:
 At some point you need to force users to upgrade.

In the case of javascript I don't think 'upgrade' is an issue here. The vast 
majority of browsers are certainly capable of executing javascript, rather 
the issue is the people who consciously choose to disable it (to get rid of 
pop-up ads, to prevent stupid websites from disabling your right-mouse 
button, and any number of other annoyances).

 As
 designer/programmer, it's almost impossible to design solutions for
 every situation. Is it really worth the time and effort to modify code
 for a user using godforsaken OS with little known limited functionaily
 browser? I say no as do some other major sites like ESPN.

 http://devedge.netscape.com/viewsource/2003/espn-interview/01/

I think you chose the wrong article to illustrate your point, because it does 
nothing to support your argument. They redesigned their website to look to 
the future when more and more browsers will be supporting CSS, DHTML etc.

In the case of javascript, I think I can safely say that as people are more 
internet-savvy the proportion of browsers which have it disabled by choice 
will increase.

 Development is a process. At one point, a decision has to be made as to
 the technical constraints of a site. In today's world it is completely
 realistic to force users to enable JavaScripting ...

In the context of PHP in general, if it can be done server-side do it 
server-side. Only rely on (if it can be relied upon!) javascript as a last 
resort.

And in the context of this thread in particular, the problem is ...

  The scripts I need to run before I redirect automatically
  send output to the browser.  I cannot alter these scripts.

... server-side and the solution is to alter the 'unalterable' scripts to 
prevent any output. It is better to solve the problem at the places where you 
have control (at the server) rather than pass the problem onto places where 
you have no control (the user's browser).

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-db
--
/*
He who always plows a straight furrow is in a rut.
*/


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] another redirecting question

2003-06-03 Thread Metin Kale
Hi Grant..

I've tested it and it doesn't resubmit this information a second time.

I have a page called submit.php where users can upload pictures.  Once they 
submit, it goes to submitpics.php for processing and creates a 
session.  Then it's redirected to submit.php which reads the session and 
destroys it after it read it.  All in all, it is as if submitpics.php never 
existed.

metin

At 10:52 AM 5/30/2003 -0500, Grant Rutherford wrote:
Hi

I did actually encounter that problem.  However, wouldn't redirecting
properly still allow the user to resubmit the information using the back
button?  I solved this problem a different way by setting and clearing
session variables on entry and exit to a series of pages.
Grant

On Fri, 2003-05-30 at 10:25, Metin Kale wrote:
 Well, if you're inserting some data into a database and the person
 refreshes the page, it would re-insert the data again into the
 database.  Including the page like you did at the end wouldn't change that
 fundamental problem, hence why you'd want to have it redirect to 
another page.

 Metin

 At 10:20 AM 5/30/2003 -0500, Grant Rutherford wrote:
 I'm very new to PHP so somebody correct me please if this is a bad
 idea...
 
 I had the same problem and I ended up just including the second page at
 the end of the first one:
 
 ?php
 // some stuff (output if necessary)
 
 include 'nextpage.php';
 die();
 ?
 
 Grant
 
 
 On Fri, 2003-05-30 at 09:43, Rick Dahl wrote:
   The scripts I need to run before I redirect automatically send output
  to the browser.  I cannot alter these scripts.  Is there a way around 
this?
  
   Rick
 --
 Grant Rutherford
 Iders Incorporated
 600A Clifton Street
 Winnipeg, MB Canada R3G 2X6
 http://www.iders.ca
 tel: 204-779-5400 ext 36
 fax: 204-779-5444
 
 This message is intended solely for the use of the designated
 recipient(s) and their appointed delegates, and may contain
 confidential information.  Any unauthorized disclosure,
 copying or distribution of its contents is strictly prohibited.
 If you have received this message in error, please destroy it
 and advise the sender immediately by phone, email or facsimile.
 
 
 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP-DB] another redirecting question

2003-05-31 Thread Griffiths, Daniel
use javascript for your redirects then you wont have these problems

-Original Message-
From: Rick Dahl [mailto:[EMAIL PROTECTED]
Sent: 30 May 2003 15:43
To: [EMAIL PROTECTED]
Subject: [PHP-DB] another redirecting question


The scripts I need to run before I redirect automatically send output to the browser.  
I cannot alter these scripts.  Is there a way around this?

Rick

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] another redirecting question

2003-05-31 Thread Hutchins, Richard
If the user has disabled JavaScript in the browser doesn't that create
another problem?

 -Original Message-
 From: Griffiths, Daniel [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 30, 2003 10:44 AM
 To: Rick Dahl; [EMAIL PROTECTED]
 Subject: RE: [PHP-DB] another redirecting question
 
 
 use javascript for your redirects then you wont have these problems
 
 -Original Message-
 From: Rick Dahl [mailto:[EMAIL PROTECTED]
 Sent: 30 May 2003 15:43
 To: [EMAIL PROTECTED]
 Subject: [PHP-DB] another redirecting question
 
 
 The scripts I need to run before I redirect automatically 
 send output to the browser.  I cannot alter these scripts.  
 Is there a way around this?
 
 Rick
 
 -- 
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] another redirecting question

2003-05-31 Thread CPT John W. Holmes
 If the user has disabled JavaScript in the browser doesn't that create
 another problem?

Yes, it does. You've already said you're not going to rewrite your code so
it's correct, though, so why worry about disabled javascript?

John Holmes...


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] another redirecting question

2003-05-31 Thread Griffiths, Daniel
good point, you could output a link for the user to click if they have turned it off.

Another method would be to do the processing on the same page so that a redirect is 
not needed, just use a flag in the post or get array to run the nessasry script.

-Original Message-
From: Hutchins, Richard [mailto:[EMAIL PROTECTED]
Sent: 30 May 2003 15:47
To: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] another redirecting question


If the user has disabled JavaScript in the browser doesn't that create
another problem?

 -Original Message-
 From: Griffiths, Daniel [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 30, 2003 10:44 AM
 To: Rick Dahl; [EMAIL PROTECTED]
 Subject: RE: [PHP-DB] another redirecting question
 
 
 use javascript for your redirects then you wont have these problems
 
 -Original Message-
 From: Rick Dahl [mailto:[EMAIL PROTECTED]
 Sent: 30 May 2003 15:43
 To: [EMAIL PROTECTED]
 Subject: [PHP-DB] another redirecting question
 
 
 The scripts I need to run before I redirect automatically 
 send output to the browser.  I cannot alter these scripts.  
 Is there a way around this?
 
 Rick
 
 -- 
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] another redirecting question

2003-05-31 Thread Metin Kale


Rick,

The way I solved this problem is to have the output sent to a variable, 
let's say $temp_data, create a session and store $temp_data as a session 
variable, redirect to another page where I can read $temp_data and have it 
displayed on that page by calling it.

Hopefully my explanation is clear enough and suits your needs..

Metin



 -Original Message-
 From: Rick Dahl [mailto:[EMAIL PROTECTED]
 Sent: 30 May 2003 15:43
 To: [EMAIL PROTECTED]
 Subject: [PHP-DB] another redirecting question


 The scripts I need to run before I redirect automatically
 send output to the browser.  I cannot alter these scripts.
 Is there a way around this?

 Rick

 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP-DB] another redirecting question

2003-05-31 Thread Ovaltine
At some point you need to force users to upgrade. As
designer/programmer, it's almost impossible to design solutions for
every situation. Is it really worth the time and effort to modify code
for a user using godforsaken OS with little known limited functionaily
browser? I say no as do some other major sites like ESPN.

http://devedge.netscape.com/viewsource/2003/espn-interview/01/

Development is a process. At one point, a decision has to be made as to
the technical constraints of a site. In today's world it is completely
realistic to force users to enable JavaScripting ...

//ariel

-Original Message-
From: Hutchins, Richard [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 30, 2003 10:47 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] another redirecting question


If the user has disabled JavaScript in the browser doesn't that create
another problem?

 -Original Message-
 From: Griffiths, Daniel [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 30, 2003 10:44 AM
 To: Rick Dahl; [EMAIL PROTECTED]
 Subject: RE: [PHP-DB] another redirecting question
 
 
 use javascript for your redirects then you wont have these problems
 
 -Original Message-
 From: Rick Dahl [mailto:[EMAIL PROTECTED]
 Sent: 30 May 2003 15:43
 To: [EMAIL PROTECTED]
 Subject: [PHP-DB] another redirecting question
 
 
 The scripts I need to run before I redirect automatically 
 send output to the browser.  I cannot alter these scripts.  
 Is there a way around this?
 
 Rick
 
 -- 
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] another redirecting question

2003-05-31 Thread Grant Rutherford
I'm very new to PHP so somebody correct me please if this is a bad
idea...

I had the same problem and I ended up just including the second page at
the end of the first one:

?php 
// some stuff (output if necessary)

include 'nextpage.php';
die();
?

Grant


On Fri, 2003-05-30 at 09:43, Rick Dahl wrote:
 The scripts I need to run before I redirect automatically send output to the 
 browser.  I cannot alter these scripts.  Is there a way around this?
 
 Rick
-- 
Grant Rutherford
Iders Incorporated
600A Clifton Street
Winnipeg, MB Canada R3G 2X6
http://www.iders.ca
tel: 204-779-5400 ext 36
fax: 204-779-5444

This message is intended solely for the use of the designated
recipient(s) and their appointed delegates, and may contain
confidential information.  Any unauthorized disclosure,
copying or distribution of its contents is strictly prohibited.
If you have received this message in error, please destroy it
and advise the sender immediately by phone, email or facsimile.


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] another redirecting question

2003-05-31 Thread Metin Kale
Well, if you're inserting some data into a database and the person 
refreshes the page, it would re-insert the data again into the 
database.  Including the page like you did at the end wouldn't change that 
fundamental problem, hence why you'd want to have it redirect to another page.

Metin

At 10:20 AM 5/30/2003 -0500, Grant Rutherford wrote:
I'm very new to PHP so somebody correct me please if this is a bad
idea...
I had the same problem and I ended up just including the second page at
the end of the first one:
?php
// some stuff (output if necessary)
include 'nextpage.php';
die();
?
Grant

On Fri, 2003-05-30 at 09:43, Rick Dahl wrote:
 The scripts I need to run before I redirect automatically send output 
to the browser.  I cannot alter these scripts.  Is there a way around this?

 Rick
--
Grant Rutherford
Iders Incorporated
600A Clifton Street
Winnipeg, MB Canada R3G 2X6
http://www.iders.ca
tel: 204-779-5400 ext 36
fax: 204-779-5444

This message is intended solely for the use of the designated
recipient(s) and their appointed delegates, and may contain
confidential information.  Any unauthorized disclosure,
copying or distribution of its contents is strictly prohibited.
If you have received this message in error, please destroy it
and advise the sender immediately by phone, email or facsimile.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] another redirecting question

2003-05-31 Thread Grant Rutherford
Hi

I did actually encounter that problem.  However, wouldn't redirecting
properly still allow the user to resubmit the information using the back
button?  I solved this problem a different way by setting and clearing
session variables on entry and exit to a series of pages.

Grant


On Fri, 2003-05-30 at 10:25, Metin Kale wrote:
 Well, if you're inserting some data into a database and the person 
 refreshes the page, it would re-insert the data again into the 
 database.  Including the page like you did at the end wouldn't change that 
 fundamental problem, hence why you'd want to have it redirect to another page.
 
 Metin
 
 At 10:20 AM 5/30/2003 -0500, Grant Rutherford wrote:
 I'm very new to PHP so somebody correct me please if this is a bad
 idea...
 
 I had the same problem and I ended up just including the second page at
 the end of the first one:
 
 ?php
 // some stuff (output if necessary)
 
 include 'nextpage.php';
 die();
 ?
 
 Grant
 
 
 On Fri, 2003-05-30 at 09:43, Rick Dahl wrote:
   The scripts I need to run before I redirect automatically send output 
  to the browser.  I cannot alter these scripts.  Is there a way around this?
  
   Rick
 --
 Grant Rutherford
 Iders Incorporated
 600A Clifton Street
 Winnipeg, MB Canada R3G 2X6
 http://www.iders.ca
 tel: 204-779-5400 ext 36
 fax: 204-779-5444
 
 This message is intended solely for the use of the designated
 recipient(s) and their appointed delegates, and may contain
 confidential information.  Any unauthorized disclosure,
 copying or distribution of its contents is strictly prohibited.
 If you have received this message in error, please destroy it
 and advise the sender immediately by phone, email or facsimile.
 
 
 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php