Re: guys here is my problem in a simpler way:)
| From: | Andreas D. Landmark | Date: | Thu, 27 Sep 2001 00:09:09 +0000 |
| Subject: | Re: guys here is my problem in a simpler way:) | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-12754@lists.php.net to get a copy of this message | ||
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.selectedIndexWhy 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.y= document.forms[0].subcategory.options[x].textif(y=="Printers") open("store1.php","newwindow") } </script> <form> <input name="category" > <input type="button" onClick="test()">