PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old June 21st, 2002, 07:43 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
throwing variables

is this possible?..

when somebody exits out of my site, either by clicking the "x" or by going to another uri, i want a seperate PHP script to execute onExit - and the script that executes actually processes information from the individuals last actions as if exiting the site were hitting a submit button.

how could i go about doing this?

Reply With Quote
  #2  
Old June 21st, 2002, 08:48 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: throwing variables

Well, you can do something like this....in the body tag of your page:

<BODY onUnload="leaving()">

then in the head of your document:

php Code:
Original - php Code
  1. <SCRIPT LANGUAGE="JavaScript">
  2. <!-- Begin
  3. function leaving() {
  4. window.open('http://www.yourserver.com/yourscript.php','',
  5. 'toolbar=no,menubar=no,location=no,height=500,widt  h=500');
  6. }
  7. // End -->
  8. </SCRIPT>


That will open up a popup window and you can do whatever you want in that script...then you can also have a goodbye type message in the popup window...only way I can think to do it off the top of my head....

Reply With Quote
  #3  
Old June 21st, 2002, 09:47 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: throwing variables

yah that thought crossed my mind but i figured peoples natural reaction would be to close the window before it even loads cause that's what i do (hence the script won't execute)

hmm..

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > throwing variables


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway