I have two buttons in a pop-up window, a save and close...
HTML Code:<input type="button" class="box" onClick="window.close()" value="Close Page" /> <input name="Save" class="box" type="submit" value="Save Record" />How can I combine the two so theres one button to save the information and then close the window?PHP Code:if($_POST['Save']){
mysql_select_db("ArborealClients", $con);
if (in_array("$lastname",$oneclient)){
mysql_query("UPDATE DB SET x='$y' WHERE a='$b' LIMIT 1");
}else{
mysql_query("INSERT INTO DB (x ) VALUES ('$y')");
}}


Reply With Quote
