Posts

Showing posts from October, 2013

Display hours in select box with am/pm using php

Display hours in select box with am/pm using php Select Hour :- <select name="starthour" style="padding:5px;">     <?php       date_default_timezone_set('Asia/Kolkata');       $currentDateTime=date('m/d/Y H:i:s');       $curtime = date('H', strtotime($currentDateTime));       $starttime = 00;       $endtime = 23;       $endloop = ($starttime + $endtime);       for($hour = $starttime; $hour <=  $endloop ; $hour ++ )       {           $showtime = $hour.':00:00';       ?>       <option value="<?php echo $hour; ?>" <?php if($curtime == $hour) echo "selected='selected'" ?>><?php echo date('h A', strtotime($showtime)); ?></opt...

Display hours in select box with am/pm using coldfusion

Display hours in select box with am/pm using coldfusion. Select Hour :- <select name="starthour" style="padding:5px;">     <cfset curtime = TimeFormat(Now(),'HH')>     <cfset starttime = 00>     <cfset endtime = 23>         <cfset endloop = (starttime + endtime)>         <cfloop from="#starttime#" to="#endloop#" index="hour">             <cfset showtime = hour & ':00:00'>             <option value="#hour#"<cfif curtime eq hour> selected="selected"</cfif>>#TimeFormat((showtime),'hh tt')#</option>         </cfloop> </select> </cfoutput>

Auto fill textbox using jquery in php

Auto fill textbox using jquery in php. Y ou allow the user to type in a value into a Textbox and fetch values from database according that keyword.

Auto fill textbox using jquery in Coldfusion

Auto fill textbox using jquery in Coldfusion . Y ou allow the user to type in a value into a Textbox and fetch values from database according that keyword.

Create excel,Create CSV,pdf,xml file,Validate Email and Phone using Regex in coldfusion

Some tiny works in coldfusion for new programmers like create excel, pdf, and use of cfsavecontent,make first letter capital,Validate EmailID and Phone using regex etc. <cfoutput>     <!---Start : Make first letter capital of a name--->       <cfset UserName = "pintu">       #rereplace(UserName, '^(\w)(.*)', '\u\1\2')#     <!---End : Make first letter capital of a name--->         <!---Start: Create Excel File--->       <cfsetting enablecfoutputonly="Yes">       <cfcontent type="application/msexcel">       <cfheader name="Content-Disposition" value="filename=FileName.xls">       <!---Excel File Content--->       <table border="0">       <tr><td>Name</td><td>Marks</td...

Populating a second select box depending of the first select box option in coldfusion

Populating a second select box depending of the first select box option  binding with coldfusion component

How to upload file with unique name in php

This is the example to make unique file name with the help of random characters and upload the file............

Delete multiple records using checkboxes in Coldfusion

Image
This is the example to delete, active and inactive multiple rows from  mysql using javascript and Coldfusion. We can checked all checkboxes and validate if no any checkbox checked. ---------------------------------------------------------------------------------------------------------- If you like this or this is useful for you. Please comment us. Thank You