Re: and pop-up windows
| From: | Wico de Leeuw | Date: | Tue, 07 Nov 2000 17:06:36 +0000 |
| Subject: | Re: and pop-up windows | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-4279@lists.php.net to get a copy of this message | ||
At 11:47 7-11-00 -0500, Stacy Hunter wrote:
This is frustrating and probably the only time I have concluded that it just can not be done...<FORM ACTION=somepage.html METHOD=post TARGET=_new>
<INPUT TYPE=submit name=a VALUE=a>
<INPUT TYPE=submit name=a VALUE=b>
</FORM>
somepage.html:
<?
if ($a == "a") {
// do stuff
} elseif ($a == "b") {
// do stuff
}
?>
P.S. notice the target in the form :)
Greetz,
Wico
I need to be able to both open a new window (I guess using javascript) and to be able to discern which button has been pushed so that the associated number gets inserted into a record without leaving the current page. PHP won't take the javascript variable without posting but I need javascript to open the new window. Nor can I just use javascript to insert into the table. Can anyone see anything I am overlooking? TIA - Stacy -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net