Re: javascript and submitting forms

From: Date: Mon, 13 Jan 2003 20:31:11 +0000
Subject: Re: javascript and submitting forms
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-24811@lists.php.net to get a copy of this message
Hello List, Has anyone had any problems using the onClick="window.close();" function within a input type = "submit" ? I'm trying <input type="submit" name="submit" value="submit" onClick="window.close();"> But evidently it's reading the close before the submit because the value of my form var is not being passed. I have also tried it in conjunction with a hidden field too. <input type="hidden" value="<?echo $comm;?>"> <input type="submit" name="submit" value="submit" onClick="window.close();"> If I dont use the onclick() the variable gets passed and/or entered into db just fine. Curious if anyone has had this problem or if anyone has any ideas...Thx Mignon

« previous php.db (#24811) next »