I suspect this won't be easy. I have a form to enter customers with 10 or so input fields. The form is described as:
<form method=POST action="updCust.html">
and the update button as:
<td><input type="submit" value="Update Customer" name="B1"></td>
This is great in that it automatically passes the fields to my update script. The update script looks like this:
<HTML>
<?php
$query4 = "UPDATE tblCust SET Cust='$cust',Name='$name',Contact='$contact',Address1='$address1',Address2='$address2',City='$city',State='$state',Zip='$zip',Type='$type',Phone='$phone',Fax='$fax',Notes='$notes' where Cust = '$cust'";
$link = mysql_connect("localhost", "***", "*****"
;
mysql_select_db("Liebert"
;
$result = mysql_query($query4);
<table border="1" cellpadding="3" cellspacing="3" style="border-collapse: collapse" width="325" id="AutoNumber1" height="92" bgcolor="#FFFFFF" bordercolor="#FFFFFF" align="left">
<tr>
<td width="509" height="7" valign="baseline" align="left" bordercolor="#FFFFFF" bgcolor="#FFFFFF" rowspan="2">
<p align="center">Record successfully updated!</p>
<p align="center">
<input type="button" value="Return" name="bReturn" width="30" onClick="self.history.back();">
</td>
</tr>
</table>
?>
</BODY>
</HTML>
Everything works fine except that I would like my update message to appear in a pop up window. I've tried the javascript command to open a pop up window but that stops my update script from receiving the fields as parameters.
If this can't be done can someone suggest an alternate way of accomplishing it. Prehaps I can move the pop up to a new script executed by the update script. I just want to be sure when the user clicks the 'Back' button they return all the way back to the original form.
Thanks in advance.
Scott
<form method=POST action="updCust.html">
and the update button as:
<td><input type="submit" value="Update Customer" name="B1"></td>
This is great in that it automatically passes the fields to my update script. The update script looks like this:
<HTML>
<?php
$query4 = "UPDATE tblCust SET Cust='$cust',Name='$name',Contact='$contact',Address1='$address1',Address2='$address2',City='$city',State='$state',Zip='$zip',Type='$type',Phone='$phone',Fax='$fax',Notes='$notes' where Cust = '$cust'";
$link = mysql_connect("localhost", "***", "*****"
mysql_select_db("Liebert"
$result = mysql_query($query4);
<table border="1" cellpadding="3" cellspacing="3" style="border-collapse: collapse" width="325" id="AutoNumber1" height="92" bgcolor="#FFFFFF" bordercolor="#FFFFFF" align="left">
<tr>
<td width="509" height="7" valign="baseline" align="left" bordercolor="#FFFFFF" bgcolor="#FFFFFF" rowspan="2">
<p align="center">Record successfully updated!</p>
<p align="center">
<input type="button" value="Return" name="bReturn" width="30" onClick="self.history.back();">
</td>
</tr>
</table>
?>
</BODY>
</HTML>
Everything works fine except that I would like my update message to appear in a pop up window. I've tried the javascript command to open a pop up window but that stops my update script from receiving the fields as parameters.
If this can't be done can someone suggest an alternate way of accomplishing it. Prehaps I can move the pop up to a new script executed by the update script. I just want to be sure when the user clicks the 'Back' button they return all the way back to the original form.
Thanks in advance.
Scott