|
rettive values after submit using get method.
here is the code to rettive values using get mothod after a post back using submit
<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
$id = $_GET['id'];
$background = $_GET['background'];
$url= $_GET['url'];
$wpdb->update( 'wordpress_background', array( 'background' => $background, 'url' => $url ), array( 'id' => $id ), array( '%s', '%s' ), array( '%s' ) );
}
?>
|