Forms

This is a discussion on Forms within the PHP General forums, part of the PHP Programming Forums category; Hi, This is probably more of a javascript question but thought someone here might have an answer. I have a ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-19-2003
Matthew Oatham
 
Posts: n/a
Default Forms

Hi,

This is probably more of a javascript question but thought someone here
might have an answer.

I have a form in a pop up windoe I want this form data to be submited to the
window that opened the popup - how can I do this? I have tried setting the
target attribute on the form tag to window.opener() but that just opens a
new window.

Any ideas?

Thanks

__________________________________________________ _______________
Tired of 56k? Get a FREE BT Broadband connection
http://www.msn.co.uk/specials/btbroadband
Reply With Quote
  #2 (permalink)  
Old 11-19-2003
John Nichel
 
Posts: n/a
Default Re: [PHP] Forms

Matthew Oatham wrote:
> Hi,
>
> This is probably more of a javascript question but thought someone here
> might have an answer.
>
> I have a form in a pop up windoe I want this form data to be submited to
> the window that opened the popup - how can I do this? I have tried
> setting the target attribute on the form tag to window.opener() but that
> just opens a new window.
>
> Any ideas?
>
> Thanks


It is JavaScript. You're on the right track with window.opener(), but
that can't be the target. I believe you're going to have to do
something with an onSubmit(), and pass the data that way.

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
Reply With Quote
  #3 (permalink)  
Old 11-19-2003
Marek Kilimajer
 
Posts: n/a
Default Re: [PHP] Forms

Matthew Oatham wrote:

> Hi,
>
> This is probably more of a javascript question but thought someone here
> might have an answer.
>
> I have a form in a pop up windoe I want this form data to be submited to
> the window that opened the popup - how can I do this? I have tried
> setting the target attribute on the form tag to window.opener() but that
> just opens a new window.
>
> Any ideas?


The simplest way is to name your main window with javascript:

window.name = 'domainMainWindow';

Then you can use the name as target in your form.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:24 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0