Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 25th, 2004, 05:03 PM
Registered User
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have an employee time tracking page I have to refresh often and my problem is similar but I was wondering if there is a way to avoid this error through internet eplorer settings. Then I could just put a simple instuction at my site.

I looked through all my prefs and found many things that were close, but nothing that specifically said "allow resending a form without warning dialog"

But if it were easy enough I think it would be no problem to get employees to use it, especially if it is a one time setting.

Eric


Time clock software - www.sundialtime.com
 
Old August 27th, 2004, 04:54 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

There is no setting to prevent this dialouge. If you must refresh, then consider another method of transmitting the data, such as GET or COOKIE.

Regards,
Rich

--
[http://www.smilingsouls.net]
[http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail
 
Old September 4th, 2004, 06:06 PM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here's a twist. When I have absolutely nothing open via IE, I still get this message when I hide or un-hide hidden objects in Windows Explorer. Is there some kind of little pop-up fiend lurking in memory that keeps a hidden instance of IE open for its own malicious intent?

I also see these oddly-named executables in Task Manager that only beget other oddly-named executables when I end their process. They only show up under Processes, not Applications. Examples of these process names are BcgY5i.exe, Jeuy7T5W.exe, Ceaq94.exe, and Ybz5.exe.

I don't know that these are related, but I was able to go to the %SystemRoot%\System32 folder and unhide everything and then delete them as I saw a new one pop up in Task Manager.

The last one was a bugger, though, as it was the only one that could run, so it always replaced itself with itself. You have to be very quick and coordinated. It doesn't help that it runs two instances of itself simultaneously, either. Deleting the file, but not answering Yes to the dialog box that finalizes the deletion helps. When you end the process, its confirmation box lays over the one for the file. If you can delete both of the processes before either one reincarnates, you still have time to answer Yes to the deletion confirmation. Otherwise, you get an error message saying the file is in use. I had to fight that battle at least a dozen times before winning. It really screws up the skirmish if the two instances are separated by quite a few processes in Task Manager.

Any idea where these guys come from? Thanks.
 
Old September 4th, 2004, 08:58 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Quote:
quote:
Here's a twist. When I have absolutely nothing open via IE, I still get this message when I hide or un-hide hidden objects in Windows Explorer. Is there some kind of little pop-up fiend lurking in memory that keeps a hidden instance of IE open for its own malicious intent?

I also see these oddly-named executables in Task Manager that only beget other oddly-named executables when I end their process. They only show up under Processes, not Applications. Examples of these process names are BcgY5i.exe, Jeuy7T5W.exe, Ceaq94.exe, and Ybz5.exe.
Don't know how that's related to this thread or PHP :).

That said, that sounds like a virus to me, or even a spyware app, though more likely the former. Have you tried anti-virus or spyware removal apps?

To get around the self-replicating executable I would suggest booting into safe mode (without networking), turn off system restore before doing so though (Control Panel->System->System Restore) and start disabling stuff in msconfig (Start->Run->msconfig), the processes ran at startup appear there. Be careful about what you disable though, as you don't want to stop anything that your system needs to run, otherwise you'll find yourself reinstalling Windows, and at that there's still a possibility that the virus could survive the reinstall! You can also poke around in the registry, but you could seriously screw up your system if you make the wrong modifications. With that warning in mind, you can get into the registry from Start->Run->regedit. I'd be taking a wild guess though at where would be appropriate to look, so you're on your own there.

Of course, I am just assuming that you're using XP. To start in safe mode go into msconfig and select SAFEBOOT from the BOOT.INI tab.

Though I don't think anyone's going to go nutty on you for posting off-topic, please try and select a more appropriate venue for your question. I've had great luck with questions like these at http://www.annoyances.org/.

HTH!


Regards,
Rich

--
[http://www.smilingsouls.net]
[http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail
 
Old September 4th, 2004, 09:10 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

tskandier,

I have no idea about this, but I do have some tips for spyware extermination, and since none of the mentioned applications can be found on Google I'm assuming that's what they are.

Get Ad-Aware SE, a free adware/spyware scanning device that removes hidden unwanted programs.

If the problem persists, get HijackThis and join ComputerCops ( http://computercops.biz ). I've used them over and over and they have experts that reply very quickly. I would do this as it seems you're pretty infested. Do you have an anti-virus? Has it picked up anything recently? Can you run the registry editor? Some types of malicious programs detect registry editor and other technical programs and close them to prevent their unwanted registry keys from being deleted.

I've never heard anything like what you've described. You really should talk to the people at ComputerCops. They've heard it all :-)

So, I think your issue has about nothing to do with what else is in this thread.... ;)

HTH,

Snib

<><
 
Old April 25th, 2006, 04:51 AM
Registered User
 
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi every body,

I have alomost the same problem as you, but,in fact, my problem is that,
I have a page that enables to select docs from a table and a button to send them by mail. if I click on the refresh button of IE, I have the message "the page cannot be refreshed without resending information to server ..." so when I click on "Ok", the page is refreshed by I receive once again the same mail as the one which I sent before the refresh button!!!

Is some one can help me to avoid this problem.
My web site is programmed in PHP !

Thanks a lot

 
Old April 25th, 2006, 05:52 PM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Default

"BcgY5i.exe, Jeuy7T5W.exe, Ceaq94.exe, and Ybz5.exe." Spyware most likely.
 
Old May 4th, 2006, 10:24 AM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by nikolai
 Well, it's up to you, as the programmer, to prevent duplicate rows from being added to the database.

Someone can submit a form and refresh the target page a hundred times -- if your code just blindly accepts the user input and throws it into a database, then you will obviously get 100 duplicate rows.

You can use multiple queries and/or session variables to track whether a user has submitted a form yet or not.

For example, if a form creates a user profile with "firstName", "lastName", and "email", then simply:

<?php

if (isset($_POST['firstName']))
{
    $query = "SELECT count(*) FROM table_name
             WHERE firstname = '{$_POST['firstName']}'
                 AND lastName = '{$_POST['lastName']}'
                 AND email = '{$_POST['email']}'";

    $result = db_query($query);

    if ($result)
    {
        $count = mysql_result($result, 0);
        if ($count == 0)
        {
             // INSERT ROW HERE
        }
        // else it's already been inserted, do not duplicate.
    }
    // else there was an error with the database query.

}


}

Take care,

Nik
http://www.bigaction.org/

i am using get method but still the retry popup message appears can u help me please.

naveen
 
Old May 4th, 2006, 10:43 AM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i am using the get method but still the retry popwindow appears how the get rid of this.

i have 3 frames top,left,right
left contains the tree structure and in right show's the filling form and when user click update in that form it should refresh the left frame i.e tree struture.

please help

thank
naveen

naveen
 
Old May 24th, 2006, 12:11 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hi friends,
my problem also solved, thanks you...

surendran
(Anything is Possible)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Reload page Tooltip not work - Reload xslt file? ismailc XSLT 10 January 22nd, 2008 10:03 AM
Problem in Reload a GridView using Timer udhayav .NET Framework 2.0 0 December 16th, 2006 07:16 AM
Problem w/ session var being incremented on reload Storm ASP.NET 1.0 and 1.1 Basics 0 October 13th, 2004 01:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.