We Would be using Your Details like name, email etc. This will be used to Contact You with Answers of Your Queries



What\'s your Name/User Id? 



You are Contacting us for?



Hey, , We\'ll use this to get back to you. No spam or unexpected newsletters here.



Provide A Link if necessary so that we can better understand Your Problem



Describe Your Query and Issue In Detail, with all relevant information Associated with it


'. wp_nonce_field('Contact_Nonce' ). '
  • Name:
  • Subject:
  • Email :
  • Link:
  • Message:
'; return $b; } add_shortcode('Contact', 'Contact'); function Contact_Nonce(){ if( !wp_verify_nonce($_POST['_wpnonce'])){ if(isset($_POST['Form_Contact'])) { if($_POST['Contact_Permission'] == 'Agree'){ // Debugging output, since you are having troubles finding the issue. // If this doesn't fire, then you've got a problem with the select name or this code isn't included in your theme / plugin. //echo "SAVING ENTRY"; // If the nonce does not verify, do NOT process the form. Contact_Row(); } } } } add_action('init', 'Contact_Nonce' ); function Contact_Row() { require_once('/home/customer/www/milyin.com/public_html/wp-config.php'); // You should use the WP table prefixes, so let's set that up.... global $wpdb, $table_prefix; $tablename = $table_prefix . 'Form_Contact'; $data = array( 'Contact_Name' => $_POST['Contact_Name'], 'Contact_Subject' => $_POST['Contact_Subject'], 'Contact_Email' => $_POST['Contact_Email'], 'Contact_Link' => $_POST['Contact_Link'], 'Contact_Message' => $_POST['Contact_Message'], ); // Debugging: Lets see what we're trying to save var_dump($data); // FOR database SQL injection security, set up the formats $formats = array( '%s', // ticket_description should be a string '%s', // ticket_status should be an string '%s', '%s', '%s', '%s' ); // Debugging: Turn on error reporting for db to see if there's a database error $wpdb->show_errors(); // Actually attempt to insert the data $wpdb->insert($tablename, $data, $formats); } ?>#activities | Milyin