 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
mypointofview

Joined: 18 Mar 2005 Posts: 32 Location: Los Angeles
|
Posted: Thu Oct 19, 2006 3:57 pm How to open a new window upon "exit()" |
|
|
|
Here's what I have in my php code (it's an email submission code):
| Code: |
| exit("<html><title>Fatal Error</title><body><p>Sorry, your message could not be processed because some terms are forbidden.</p><p>Please press the back button in your browser and submit your message again but use a different verbage. Thank you.</p></body></html>") |
What I'd like to do is that a new window will open (a window which I can control as a little popup window).
Also, when submitting the message, I have so far the following where I'd also want to have a pop up window open:
| Code: |
mail($sendto, $emailsubject, $msg, $from);
header("Location: $thankyou");
} |
I've searched for tips on the web but all exit tricks revolve around JavaScript and nowhere I could find anything for my submit button.
Can somebody help and would it be easy? Where do I place target="_blank" or even a javascript popup function ?
Thanks,
Martin |
|
degsy

Joined: 23 Feb 2005 Posts: 2440 Location: North East, UK
|
Posted: Thu Oct 26, 2006 5:03 am |
|
|
|
You need to use Javascript to have a controlable popup window.
You would put the javascript code in with your HTML |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|