By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,839 Members | 2,270 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,839 IT Pros & Developers. It's quick & easy.

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

P: 1
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$variable1\" Class=\"menubuttonGreyRaised\" Style=\"width:175;height:25\" ";
print ("onClick=\"self.location='mailto:?subject=New%20A ppointment%20for%20you&body=This%20appointment%20h as%20been%20assigned%20to%20you%3A...(mail body)................'; window.open ('store.php?user=$sesion&field=getValor()&ID=$vari able1');\">");
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
Feb 27 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.