opening a window with after form submission


Posted on 16th Feb 2014 07:03 pm by admin

I know this this forum has nothing to do with JS, but i'm trying to use it with my php script.

What i'm trying to do, and i'm not 100& sure i'm doing right, is after someone has submitted the form, i want a pop window to appear with text telling them that the for was submitted and what not.

Did you know?Explore Trending and Topic pages for more stories like this.
I know that i can use

Code: open('file.php', 'window_name', 'width = 50, height = 50');
but what i'm not sure is how to use it.

i tried using this
Code: //if everyting is good, then send the email and reply email
$send = mail($to, $subject, $body, $from);
$reply = mail($to2, $subject2, $body2, $from2);

if($send){

'open("success.html", "success", "width = 261, height = 200")';

}

but when i process the form, it goes but no window opens

Like is said i hope i can get help in here in this forum
No comments posted yet

Your Answer:

Login to answer
323 Like 39 Dislike
Previous forums Next forums
Other forums

Javascript or not?
How many people prefer javascript/ajax sites? How many prefer the good old fashion straight php sit

Question about the upload of large files
Hi there,

I have a question about the upload of large files, like videos (files generally abo

Strange php code found on my website
I got hacked and the following code was placed within my files:

Code: [Select]<?
/*

iMatch stored value with the current value in a loop
Hello,

I have a MySQL db were I store articles in.

I have a form to fill these article

Email Script does not reach destination
Hey Guys look at this code snippet :
Code:
//read a line from the file

$myFile = "

ALV List Display to point to another report on Double Click
Hi,

I want my ALV List Display to point to another report on Double Click on its line ite

New to Arrays
Hi I am new to PHP (a week and a half now) and I am just beginning to read about arrays. I understan

Procedural to OOP
John Kleijn said that to avoid writing "crappy code", we should learn OOP and common OO pr

WM transfer order: confirm different batch than proposed by system
Hi folks,

following scenario: we have a full WM with mixed batch numbers allowed in stora

PHP form help required
Hi all! Apologies in advance for having to message the forum for help. I know you must get a lot of

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash