This is a discussion on "[SOLVED] close current window in php script" within the PHP Forum section. This forum, and the thread "[SOLVED] close current window in php script are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] close current window in php script
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
[SOLVED] close current window in php script
I have a form to email script. At the end of the script, after the email has been submitted, the script echos "The consultation form has been submitted...Thank you"
This echo is now alone on the window. Is it possible to add on a function to close this window? Could this be done within the php script, after the "thank you" echo? Or does this need to be placed within an html page including the php script, in javascript? (creating a button to click to close the window) Thanks for all the great advice! |
|
|
|
#2
|
||||
|
||||
|
Re: close current window in php script
You simply need to write out some javascript with php
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#3
|
|||
|
|||
|
Re: close current window in php script
Wow, man! You are fast!
Thanks a bunch! |
|
#4
|
||||
|
||||
|
Re: close current window in php script
LOL right place at the right time.. Glad it works
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#5
|
|||
|
|||
|
Re: [SOLVED] close current window in php script
That was javascript... you printed the js in php but still not php... I wonder is there a php function that does this as well. Anyone know?
|
|
#6
|
||||
|
||||
|
Re: [SOLVED] close current window in php script
No. LOL simple as that.... PHP is server side, it does not affect the client computer in any way. It serves the text/data to be loaded and this is all, it writes the javascript but cannot interact with the client at all
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#7
|
|||
|
|||
|
Re: [SOLVED] close current window in php script
What a stupid question to have put to you guys and having coded php for as long as i have you would have thought I'd put two and two together. I am always trying to explain to people server side and client side scripting and yet I get it wrong myself... man im embarrassed!
|
|
#8
|
|||
|
|||
|
Re: [SOLVED] close current window in php script
hehe. Don't worry... It also took me ages to understand that concept - PHP is server-side and generates HTML.....
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| link to close window in html page | cgst81 | Web Page Design | 1 | Jun 1st, 2008 11:34 |
| [SOLVED] press button to close window | R8515198 | Web Page Design | 2 | Jan 27th, 2008 16:39 |
| [SOLVED] Getting the current domain | MikeHopley | PHP Forum | 4 | Nov 22nd, 2007 17:40 |
| [SOLVED] open new window from main window | AdRock | Other Programming Languages | 1 | Nov 1st, 2007 02:45 |
| resizing current window with java | danydrunk | Other Programming Languages | 2 | Jul 12th, 2006 21:27 |