php-windows Digest 16 Feb 2002 09:54:22 -0000 Issue 1003
Topics (messages 12100 through 12109):
Re: PHP header to close browser window?
12100 by: Pac mon
Session problem...
12101 by: Brian Feliciano
12105 by: Piotr Pluciennik
12107 by: Nicole Amashta
Authorization
12102 by: Gehring Uwe
12104 by: Christoph Grottolo
Re: Getting PHP to behave with MS SQL Server 7
12103 by: Christoph Grottolo
12106 by: Todd WIlliamsen
Re: Undefined Index....
12108 by: Nicole Amashta
access database over multiple pages
12109 by: quincy
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
You should just be able to close the window by doing something like this in
javascript:
newWindow = window.open(...);
...
newWindow.close();
----Original Message Follows----
Greetings,
I had an extra browser window created with the HTML <TARGET=_blank>
attribute. I would like to be able to automatically close it by sending some
kind
of header via PHP. Is there such a way, or do I have to ask the user to
close it
manually?
Symeon Charalabides (cosmopolitan trainee)
------------------------------------------
http://www.webmate.gr
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
--- End Message ---
--- Begin Message ---
how can i avoid this message in IE
-----
Warning: Page has Expired
The page you requested was created using information you submitted in a form. This
page is no longer available. As a security precaution, Internet Explorer does not
automatically resubmit your information for you.
To resubmit your information and view this Web page, click the Refresh button.
-------
i just pushed the back button.
the page submitted something.
i am using the same page as the form processor.
(e.g. <form name="form1" action="<?=$PHP_SELF?>" method="post">)
--- End Message ---
--- Begin Message ---
What version of IE are you using? Is this problem
occurs with different versions or only with 4?
Piotr
--- Brian Feliciano <[EMAIL PROTECTED]> wrote:
> how can i avoid this message in IE
> -----
> Warning: Page has Expired
> The page you requested was created using information
> you submitted in a form. This page is no longer
> available. As a security precaution, Internet
> Explorer does not automatically resubmit your
> information for you.
>
> To resubmit your information and view this Web page,
> click the Refresh button.
> -------
> i just pushed the back button.
> the page submitted something.
> i am using the same page as the form processor.
> (e.g. <form name="form1" action="<?=$PHP_SELF?>"
> method="post">)
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
Like the message suggests, it's a safety precausion. This is so you can't go
around and push back buttons on browsers in public environments so to
retrieve people's data.
Say you were checking your mail on a public terminal. If anyone could go
back on the browser, they could check your mail.
Purpose is to secure possibly sensitive and/or private/personal information
from other users.
=============
"Brian Feliciano" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> how can i avoid this message in IE
> -----
> Warning: Page has Expired
> The page you requested was created using information you submitted in a
form. This page is no longer available. As a security precaution, Internet
Explorer does not automatically resubmit your information for you.
>
> To resubmit your information and view this Web page, click the Refresh
button.
> -------
> i just pushed the back button.
> the page submitted something.
> i am using the same page as the form processor.
> (e.g. <form name="form1" action="<?=$PHP_SELF?>" method="post">)
>
--- End Message ---
--- Begin Message ---
Hi,
my system is Win2k, IIS5, php4.06 as CGI. I have windows
authentification turned on on certain subdirs on a intranet, formerly
known as "nt challenge"(?). How can I get the authenticated user into
php? Without extra questioning of course...
TIA
Uwe
--- End Message ---
--- Begin Message ---
Hi
> my system is Win2k, IIS5, php4.06 as CGI. I have windows
> authentification turned on on certain subdirs on a intranet, formerly
> known as "nt challenge"(?). How can I get the authenticated user into
> php? Without extra questioning of course...
You should have the variable $AUTH_USER available in the global scope which
identifies the current user. You can check this by running phpinfo(); in one
of the directories where you have windows auth turned on.
HIH
Christoph
--- End Message ---
--- Begin Message ---
| The first thing I would check is to make sure that the php_mssql.dll
module
| is installed correctly. You can do this by creating a simple script with
|
| php_info();
You mean
phpinfo();
Christoph
--- End Message ---
--- Begin Message ---
I found the problem...
For some unknown reason, I cannot connect to the sample database Northwind.
It doesn't like it, even if I am connecting as "sa" weird
"Christoph Grottolo" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> | The first thing I would check is to make sure that the php_mssql.dll
> module
> | is installed correctly. You can do this by creating a simple script with
> |
> | php_info();
>
> You mean
>
> phpinfo();
>
> Christoph
>
>
--- End Message ---
--- Begin Message ---
First thing I thought when I saw that was a database table index.
But, it appears that when you try to reference the field of the row array,
it's saying it is undefined.
First make sure that there were rows returned before continuing to go
through the "returned data set" ... in case there was no data returned.
if ( ( $numrows = mysql_num_rows($result) ) > 0 ) {
while( $row = mysql_fetch_array($result) )
{
## ...
}
}
<snip>
$sql = "SELECT ReqNum, Industry, Other, JobTitle, Description, Location,
Notes FROM $jobtable WHERE id = '$id'";
$result = @mysql_query($sql, $connection) or die("Couldn't execute
query.");
while ($row = mysql_fetch_array($result))
$ReqNum = $row['ReqNum']; <=============== LINE 25
</snip>
Oh, and you're missing the CURLY BRACES that should encase the code for the
WHILE LOOP ...
nicole
www.aeontrek.com
"Todd Williamsen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Warning: Undefined index: ReqNum in
> c:\inetpub\wwwroot\recruiter\show_job.php on line 25
>
>
> What does this error mean?
>
> I get it from this code...
>
> $sql = "SELECT ReqNum, Industry, Other, JobTitle, Description, Location,
> Notes FROM $jobtable WHERE id = '$id'";
> $result = @mysql_query($sql, $connection) or die("Couldn't execute
> query.");
> while ($row = mysql_fetch_array($result))
>
> $ReqNum = $row['ReqNum']; <=============== LINE 25
> $Industry = $row['Industry'];
> $Other = $row['Other'];
> $JobTitle = $row['JobTitle'];
> $Description = $row['Description'];
> $Location = $row['Location'];
> $Notes = $row['Notes'];
> the weird thing is that everything else works, why doesn't it like this
> value?
>
>
--- End Message ---
--- Begin Message ---
I want to design a web application using php ,that allows the user to sign
in once into the mysql database and then over the course of several pages to
perform several queries on the database using their name and password.
My question is how can I do this without asking the user to enter his name
and password on every page so that a query can be performed on the
database.My initial thoughts was to store the user name and password as
session variables when the person initial signs in. My concern is if this
safe enough as someone else may be able to access the session variables and
get the user name and password.
Can anyone offer any suggestions on the safest way of accessing a mysql
database over several pages using the same user name and password without
asking the user to give this information on every page which needs to run a
query on the database.
--- End Message ---