How to get url segment / address bar data from js and php
1. get url infomation via php <?php $uri_path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); $uri_segments = explode('/', $uri_path);…
Read Article14 articles found
1. get url infomation via php <?php $uri_path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); $uri_segments = explode('/', $uri_path);…
Read Article1. Create html form <form class="fpd-upload-form" enctype="multipart/form-data" method="POST"> <div class="fpd-upload-zone"> <input type="file" multiple="multiple" class="fpd-input-image"…
Read ArticlePlease removing ‘height: 100%’ from my html and body tags. $(window).scroll(function() { var sh = $(window).scrollTop(); console.log(sh); if ( sh…
Read ArticleCookie is created with the setCookie() function. jQuery(document).on(‘click’,’#element-id/class’,function(e){ console.log(book); setCookie(‘cookie_name’,value, no_of_days); getCookie(‘cookie_name’); }); function setCookie(name,value,days) { console.log(value); var expires =…
Read Article