Jump to content


Open new window to Post Back

  • Please log in to reply
1 reply to this topic

#1 onlyican

  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 10 September 2006 - 11:10 AM

Hey guys
Been looking for something to help me here, but I just aint figured it out

I have a page where a user can send a message to another member of the website
The Compose Page, I want to have a button they press, this will open a new window, on this form, they can search for a user name
then they hit submit, and it will post back to the first page.

I might evan add this into a frame on the site, so they can search without page reload.

The reason I am saying button, is because I want the data in the form secured.
So if I have a basic form of

so if they type in the message_Subject and Message_Body,when they click Find User, I will post the value into the new page, in hidden fields

I got the form to open in a new window to find the username
(<form method='post' target='_blank'>)

but when I use _parent, or _top, it reloads in the same window (and _self, which is obvious)

I dont really want to use Javascript, but i will if I have to
Tell me the problem, I will try tell you the solution

#2 jefkin

  • Members
  • PipPipPip
  • Advanced Member
  • 55 posts

Posted 11 September 2006 - 02:10 AM

A minor suggestion, onlyican,

If you want to avoid javascript, You could save the entered data in a mysql table, then let the browser load right on top.  Once the user's selected the recipient, you can retrieve it.

Another way that might fit the bill better:  To acomplish almost the same thing you could use sessions.  So once they hit the 'select user' button or whatever, it saves the entered stuff in the session and opens the recipient chooser page.  The chooser page let's them pick and when they resubmit, grab their stored session data and display it along with the user.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users