Skip to content

Logic Bytes

Spread Your Knowledge

  • Home
  • How To
  • PHP
    • Cakephp
    • WordPress
    • CodeIgniter
    • Laravel
  • Python
    • Django
    • Flask
  • Contact

PHP

Article / JavaScript / JQuery / PHP

JavaScript: show confirm alert on click

December 10, 2016 Chandan SharmaComment on JavaScript: show confirm alert on click

## By calling this function on form submit, will confirm for submit <script> function confirmme() { var r = confirm(“Want To Submit this..??”);   if(r) …

Read More
CodeIgniter / PHP

Php: show number with two decimal point

December 10, 2016 Chandan SharmaComment on Php: show number with two decimal point

## make number format upto 2 decimal point here we can use, number_format(): echo number_format((float)$number, 2, ‘.’, ”); ## Example: $foo = “105”; echo number_format((float)$foo, …

Read More
CodeIgniter / PHP

find key in array using php

December 8, 2016 Chandan SharmaComment on find key in array using php

## Find if key exists in the array list. Here key is searching in POST array. array_key_exists(‘status’, $_POST); Returns TRUE if the key exists and …

Read More
CodeIgniter / PHP

Flash message in php

December 3, 2016 Chandan SharmaComment on Flash message in php

## include this in every page.. if(isset($_SESSION[“errormsg”])) { $error = $_SESSION[“errormsg”]; session_unset($_SESSION[“errormsg”]); } else { $error = “”; } ## For showing the message just …

Read More
CodeIgniter / CSS / HTML / JavaScript / JQuery / PHP

On click a radio button show or hide a div using Jquery

December 3, 2016 Chandan SharmaComment on On click a radio button show or hide a div using Jquery

## ON CHECK RADIO BUTTON SHOW OR HIDE A DIV USING JQUERY:: $(‘input[name=”usertype”]’).click(function() {       if($(‘input[name=”usertype”]:checked’))       {       …

Read More
CodeIgniter / JavaScript / JQuery / PHP

Redirect to another page using javascript

December 3, 2016 Chandan SharmaComment on Redirect to another page using javascript

Use this to redirect to another page. <script> window.location = “http://example.com/foo.php?option=500”; </script>

Read More
Ajax / CodeIgniter / JavaScript / PHP

How to check ajax request or not

November 27, 2016 Chandan SharmaComment on How to check ajax request or not

if (!empty($_SERVER[‘HTTP_X_REQUESTED_WITH’]) && strtolower($_SERVER[‘HTTP_X_REQUESTED_WITH’]) == ‘xmlhttprequest’ ) { // It is ajax Request }

Read More
CodeIgniter / PHP

avoid duplicate value insertion on page refresh in php

November 25, 2016 Chandan SharmaComment on avoid duplicate value insertion on page refresh in php

TO AVOID DUPLICATE VALUE INSERT IN CORE PHP ON REFRESH:: During the post value insertion in the database, after refresh duplicate value inserted in the …

Read More
CodeIgniter / HTML / JavaScript / JQuery / PHP

populate popup page using javascript

November 25, 2016 Chandan SharmaComment on populate popup page using javascript

SHOW POPUP:: Javascript Code: function showmepop(plink,pname) {     window.open(plink, pname, “top=10,left=20,width=600,height=400″);  } Html code:: <button onclick=”showmepop(‘<?php echo $QUOTELINK;?>’,’test’);”>View</button>

Read More
CodeIgniter / JavaScript / JQuery / PHP

Get select box value among many select box using Jquery

November 15, 2016 Chandan SharmaComment on Get select box value among many select box using Jquery

AFTER APPEND IN BODY.. We Can Get value of selected select box using jquery. It works. checked already.. $(document).on(‘change’, “select.optn”, function () { var ID …

Read More

Posts navigation

Previous 1 … 21 22 23 … 28 Next

Recent Posts

  • Python Automation Framework-PyUnit (Unittest) Framework
  • Python Automation Framework-TestProject Framework
  • Python Automation Framework-Pytest Framework
  • Python Automation Framework-Lettuce Framework
  • Python Automation Framework-Behave Framework:
  • Top Python Testing Automation Frameworks in 2024
  • Visual Studio Code Keyboard Shortcut Editor
  • Visual Studio Code Keyboard Shortcuts
  • How to Remove Sidebar from Category Pages in WordPress?
  • Best Practices for API Responses

Automation Frameworks Automation Testing Behave Framework Blogger Blogspot Cakephp Cheat Sheets Code Editor CodeIgniter Code Navigation Collaborative Coding Debugging Tools Disable Mouse Right Click Domain Extension Editor Extension Full form Facebook Facebook Video Download IDE JavaScript JQuery Lettuce Framework Microsoft Code Editor Open-Source Code Editor PHP Pytest Framework Python Python-3.x Python Automation Python Automation Frameworks Python Automation Testing Python Pytest Framework Python Testing Frameworks Python TestProject Framework Python Unittest Framework Syntax Highlighting Testing Frameworks Text Editor for Developers Visual Code Visual Code Editor Visual Studio Code Visual Studio Code Cheat Sheet VSCode VSCodeEditor WordPress

Copyright © 2026 Logic Bytes.
Powered by WordPress and PridMag.