1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php require("configure.php"); ?> <? $cid = $_POST["cid"]; $cphone = htmlspecialchars($_POST["cphone"],ENT_QUOTES); $cfax = htmlspecialchars($_POST["cfax"],ENT_QUOTES); $cemail = htmlspecialchars($_POST["cemail"],ENT_QUOTES); $cdescen = preg_replace("/'/","\'",$_POST["cdescen"]); $cdesctc = preg_replace("/'/","\'",$_POST["cdesctc"]);
$sql = "update contactus set cphone='$cphone', cfax='$cfax', cemail='$cemail', cdescen='$cdescen', cdesctc='$cdesctc' "; $sql .= "where cid=". $cid ." "; //echo $sql; mysql_query($sql); mysql_close($dbh);
header("Location: contactmodifyform.php?cid=$cid&msg=Update Successful"); ?>
|