I want to add php script in Fast Secure Contact Form
-
Hi,
I have a static website where I am using a php script to transfer all query data to our company database. now I am transferring my website to wordpress and I want same feature. any one guide me.
this is the code
$timezone = new DateTimeZone("Asia/Kolkata" ); //$tm = (date("l d F Y h:i:s A")); $con = mysql_connect('data host server name','database name','database password'); $db = mysql_select_db('############',$con); $date = new DateTime(); $date->setTimezone($timezone ); //$tm=$date->format( 'H:i:s A / D, M jS, Y' ); $tm=$date->format( 'H:i:s A' ); $time = $date->format('H'); $ip = $_SERVER["REMOTE_ADDR"]; $dt =$date->format("j/n/Y"); $sql = mysql_query("INSERT INTO Enquiry(Name,Email,Mobile,Course,City,Query,IP,Time,Date,Bytime) VALUES('$name','$email','$mobile','$course','$city','$query','$ip','$tm','$dt','$time') "); $res = mysql_query(" insert into SEO(Name,Email,Mobile,Course,City,Query,Time,Date,IP) values('$name','$email','$mobile','$course','$city','$query','$tm','$dt','$ip')"); ?>
- The topic ‘I want to add php script in Fast Secure Contact Form’ is closed to new replies.