Computing.Net > Forums > Web Development > Heres 1 for u

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Heres 1 for u

Reply to Message Icon

Original Message
Name: Jamie_McCoy
Date: March 30, 2005 at 15:11:49 Pacific
Subject: Heres 1 for u
OS: XP Pro 5.1
CPU/Ram: Pentium 4 2.4Ghz
Comment:

i have a form, works fine, however, i want the target to be a pop

i have the popup code, just need to integrate it into the form so that when submit is click, a popup opens up with the posted details which will then be read in by the PHP

roamhosting.net


Report Offensive Message For Removal


Response Number 1
Name: Dr. Nick
Date: March 31, 2005 at 00:50:00 Pacific
Reply: (edit)

I think it's easier to have your PHP code write the popup code.

For example, in your PHP script, process the data, then do something like:

<? echo "<script>window.open(...);</script> ?>

And have the open function open another PHP page which you can pass the required values to. That's one way.

You could also include the JS script file at the top of the PHP page which has all the window opening code in it, then use the above method similarly:

<? echo "<script src='script.js'></script> ?>


Report Offensive Follow Up For Removal

Response Number 2
Name: Jamie_McCoy
Date: March 31, 2005 at 06:42:14 Pacific
Reply: (edit)

that still wont do anything, the problem is getting the subbmitted form data to be sent to a new popup window, exactly the same way as having target=blank or what ever, except a popup...

roamhosting.net


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home








Do you have a Desktop Computer anymore?

No
Yes, but only at work
Yes, but its rarely used
Yes, and its a workhorse


View Results

Poll Finishes Today.
Discuss in The Lounge
Poll History




Data Recovery Software