What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-08-31 22:49:01
php isset multiple
if (isset($_POST['search_term'], $_POST['postcode'])) { } Add solution -
PHP 2021-08-28 22:21:02
Woocommerce custom Flat Rate charges (by ID) Function
function wc_ninja_change_flat_rates_cost( $rates, $package ) { // Make sure flat rate is available // '13' is Flat Rate ID (What you Define) if ( isset( $rates['flat_rate:13'] ) ) { // Set the cost to $100 $rates['flat_rate:13']->cost = 60; ... Add solution -
Other 2021-08-27 18:47:01
post form data
// Check if the form is submitted if ( isset( $_POST['submit'] ) ) { // retrieve the form data by using the element's name attributes value as key echo '<h2>form data retrieved by using the $_REQUEST variable<h2/>' $firstname = $_REQUEST['... Add solution