When PHP variable’s value change.
-
Good day,
Sorry I’m a newb to WordPress development,
I know you can use the onchange function for text, option and select fields.
But I want to perform an action when a PHP Variable changes.// SHOW WINNING LOOSING MESSAGE $user_bid = $_POST['wdm-bidder-bidval']; <?php if($user_bid === $curr_price){ ?> <div class="wdm_reserved_note wdm-mark-green wdm-align-left"> <em><?php _e('WINNING!', 'wdm-ultimate-auction'); ?></em> </div> <?php } else {?> <div class="wdm_reserved_note wdm-mark-red wdm-align-left"> <em><?php _e('LOOSING!', 'wdm-ultimate-auction'); ?></em> <?php } ?> // END WINNING LOOSING MESSAGE
What I want to do if the PHP variable $curr_price changes it must check if the $curr_price is equal to the value the user entered in a text box, If it is equal it will display a message winning, but if it is diffrent it will show a message loosing.
any advise/help please
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘When PHP variable’s value change.’ is closed to new replies.