Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 667005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:52:52+00:00 2026-05-13T23:52:52+00:00

The script below resides in my theme’s functions.php file. It is designed to show

  • 0

The script below resides in my theme’s functions.php file.

It is designed to show and fade an “update” div which comes on screen after each save event. Just asking if this is the best approach to take so that it only executes on save and is not constantly trying to run the jQuery…

<form method="post">

<?php
if ( $_REQUEST['saved']) 
  { ?>
     <div id="message" class="updated fade"><p>The settings were saved</p></div>

    <script type="text/javascript">
       $('#message').delay(3000).fadeOut(3000);
    </script>

<?php }?>

<?php foreach ($options as $value) {
switch ( $value['type'] ) {
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T23:52:52+00:00Added an answer on May 13, 2026 at 11:52 pm

    This will try to run the given code every-time $_REQEST['saved'] is not falsy.

    So, it will run if $_REQUEST is equal to anything except 0, false, empty strings, or a few other falsy values.

    See the documentation for a full list of falsy values.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a powershell script below which takes a config file and deletes files
The script below, test.php, is intended to be placed in a specific directory of
I have the following script below where I try to mimic a file upload
When I run the script below, I get $VAR1 = [ 'ok0.ok]][[file:ok1.ok', undef, undef,
I'm using this script below for loading a hidden div, inside another: $(document).ready(function(){ $(function()
I wrote the following Perl script (below) in order to create simple XML file.
Script below is not working. Not getting any php error messages. Had asked a
I have a script in the link below which works in IE8 nicely. However,
The script below applies random colours from an array to a div id, and
That script below is for uploading an image via PHP. Now I'ld like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.