Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About IamMarvin1a

  • Rank
  • Birthday 05/25/1985

Previous Fields

  • Languages
    English, FIlipino

Contact Methods

  • Website URL
  • Skype

Profile Information

  • Gender
  • Location
    B8 L9 Bernabe Compd., Pulanglupa I, Las Pinas City
  • Interests
    Web Development, Software Development, Many Sports
  1. I also have other codes using the setTimeout <p id="HHootteeLLClock"></p> <script> var serverClock = new Date(<?php echo time() * 1000 ?>); timeInterval(); //start the time interval function timeInterval(){ var currentMS = serverClock.getTime(); currentMS += 1000; serverClock.setTime(currentMS); document.getElementById('HHootteeLLClock').innerHTML = "The date today is " + serverClock.toDateString() + "<br>" + "The time today is " + serverClock.toTimeString(); setTimeout(timeInterval, 1000); } </script>
  2. Hello. I got some code or other technique/solution which I found while researching in the internet. Here is the code: <div id="websiteClock"></div> <script> var serverClock = new Date(<?php echo time() * 1000 ?>); function startInterval(){ setInterval('updateTime();', 1000); } startInterval();//start the time interval function updateTime(){ var currentMS = serverClock.getTime(); currentMS += 1000; serverClock.setTime(currentMS); document.getElementById('websiteClock').innerHTML = serverClock.toDateStri
  3. Hello. I already tried using JavaScript Clock With Timing Event Code like this: <script> function startTime() { var today = new Date(); var h = today.getHours(); var m = today.getMinutes(); var s = today.getSeconds(); m = checkTime(m); s = checkTime(s); document.getElementById('txt').innerHTML = h + ":" + m + ":" + s; var t = setTimeout(startTime, 500); } function checkTime(i) { if (i < 10) {i = "0" + i}; // add zero in front of numbers < 10 return i; } </script> But I notice it will be much better to use PHP Server Date/Tim
  4. Hi Dodra. I visited the link you gave. The website has an application for calendar reservation system. I already seen many of this kind in Wordpress Plugin website available for free version. However what I need is a simple calendar with Start Date and End Date selection just like this url: http://iammarvin261.x10host.com/wphottel1a/single-bed-2/
  5. Hello. Right now I am looking for an open source code for hotel online reservation calendar with check-in(start date) - check-out(end date) selection. It may be a PHP code, JavaScript, JQuery or any relate javascript library which do not need to use javascript server like node.js Please visit the url for a example calendar selection: http://iammarvin261.x10host.com/wphottel1a/single-bed-2/ I will use the source code to change/remodel my current check-in/checkout reservation form. Can you help me easily find the source code on your CP Reservation Calendar on your php plugin
  6. Thanks justsomeguy A good information about using PHP SUPERGLOBALS $_SERVER[‘HTTP_REFERER’]; and PHP Session code $_SESSION[“session_name”]; I will now use PHP Session code $_SESSION[“session_name”];
  7. Hi to all. Sorry for late reply. It took me 4 days to choose how block unauthorized access to my WordPress php plugin file using JQUERY AJAX. I tried to to use wordpress is_user_logged_in() function but you can only use this function if the php file is included on WordPress plugin main php file. I decided to choose PHP SUPERGLOBALS $_SERVER[‘HTTP_REFERER’]; over PHP Session code $_SESSION[“session_name”]; I will add sample code: /** javascript JQuery AJAX code of my php file which can copy/get through a browser by any user */ $(document).ready(function(){ $.post("
  8. Hello. I made a WordPress plugin with a JQuery-AJAX/JSON code in a php file like this: $(document).ready(function(){ $.post(“/wp-content/plugins/SLMS/UserRecord.php”, { saveUserBtn: “Save”, FName: fname, LName: lname, UNumber: unumber, address: address, contact: contact, email: email }, function(data, status){ document.getElementById(‘userr-page-notice’).innerHTML = data; if(data.includes(“New record saved.”)) { document.getElementById(“userRecord”).reset(); } }); }); /** end of code */ I also notice that any user can view my javascript code with their own browser. I also noticed tha
  • Create New...