At 26.09.2001 22:24, its me wrote:
>hi there, i have a similar problem which is driving me crazy and i hope u 
>can help with:
>
>
>i have  a form whith a normal button when clicked ,i open a new window 
>through javascript(this window have a php script)
>which i wanna pass to it a form field:
><input name="category">
>
>but as i told u there is no submission for the form so i can't pass for 
>example a hidden field or $category
>
>
><script>
>
>function test()
>{
>   x=document.forms[0].subcategory.selectedIndex
>     y= document.forms[0].subcategory.options[x].text
>
>   if(y=="Printers")
>   open("store1.php","newwindow")
>}
></script>
><form>
><input name="category" >
><input type="button" onClick="test()">

Why don't you pass the value along with the URL?
open("store1.php?myvalue=wooosh", "newwindow")
(and ofcourse use your pretty little function to create the URL).


-- 
Andreas D Landmark / noXtension
Real Time, adj.:
         Here and now, as opposed to fake time, which only occurs there
and then.


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to