I just wrote something exactly like this today:

function news_window (headline_str)
{

var headline_link = "/story.asp?headline=" + escape(headline_str);

window.open(headline_link,'','scrollbars=yes,resizable=yes');
}

Now, if I needed to pass along more variables, I'd just add them to the
news_window () arguments, i.e. if I needed to pass along a text field and a
user id, I'd go:

function news_window (headline_str,text,user_id)

Try it, then let us know how it goes. Don't use the <input> tags - once you
make a function like the one above, call it with <a
href="javascript:news_window(your_argument_here)"></a>. Also, try not to say
things like "I don't think it will work" if you haven't given it a shot yet.
I knew -nothing- of JavaScript before I needed to use the window.open()
function today, but now I know enough about it to make some useful scripts.
Try going to google.com and searching for 'javascript reference' - you will
likely find the results handy.

HTH
Jason Soza

-----Original Message-----
From: Mantas Kriauciunas [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 18, 2002 1:44 AM
To: Justin French
Cc: [EMAIL PROTECTED]
Subject: Re[2]: [PHP] pop-up


Hello Justin,

i don't think that this thing will pass 300 simbols successfuly
i take $nw_text from <TEXTAREA> and i need to pass it to pop-up (other
window) there it will generate preview of that text with some stuff...
but i need to pass also 2 more ...so total is 3 things...one text and
other ones is just like date and username






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to