open new window and pass content of a text input control, with other parameters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hcuellar
    New Member
    • Feb 2007
    • 1

    #1

    open new window and pass content of a text input control, with other parameters

    Hi.


    Please I need your help for this:

    After a database query, a table is created with a cell for each information retrieved, and for each record, two buttons, and second one have besides it an text imput field to asign this, open a mail client to send a mail to some people.

    All this, is made in php.

    In other words, user logs in, a window is open (after query) showing new appointments (set in other office), and each new appointment have the buttons, he decide who assign to, put name and this must open mail client to send mail to the person assigned (arbitrary) and store this name in database.

    I was trying to do: in on click button event, open mail (it works, and fills mail body, no problem), open new window in php, to store assigned person's name and autoclose this new window.

    My code is:

    print "<input type=\"button\" Name=\"Send\" Value=\"Assign to Representative: \" ID=\"Buttona$va riable1\" Class=\"menubut tonGreyRaised\" Style=\"width:1 75;height:25\" ";
    print ("onClick=\"sel f.location='mai lto:?subject=Ne w%20Appointment %20for%20you&bo dy=This%20appoi ntment%20has%20 been%20assigned %20to%20you%3A. ..(mail body).......... ......'; window.open ('store.php?use r=$sesion&field =getValor()&ID= $variable1');\" >");
    print ("&nbsp&nbsp ");

    print ("<input type=\"text\" name=\"agentass $variable1\" size=30 maxlenght=30\"> ");


    I have to pass the record identifier, the value of text field, and user ID

    But I don't know how to send new value of this text field to new window.

    And, if there is abetter way to do this.

    Please, help me.

    I am learnin to do this, and I think I'm doing good enough until now. :-(

    I am locked.

    Thanks a lot
    Last edited by hcuellar; Feb 27 '07, 11:59 PM. Reason: duplicated
Working...