<script type=”text/javascript”> function calpercentge(e) { var pcnt=6; var nprice=0; var spval= e.value; …
Read MoreCodeIgniter
SELECT ALL CHECK BOX USING JAVASCRIPT
function select_all2() { for (var i=0;i<document.form3.elements.length;i++) { var e =document. form3.elements[i]; if ((e.name != ‘check_all’) && (e.type==’checkbox’)) …
Read MorePayUMoney return data after payment
Array ( [mihpayid] => 403993715515489558 [mode] => CC [status] => success [unmappedstatus] => captured [key] => DgdPazAK [txnid] => CHN00001140 [amount] => 5000.0 …
Read MoreEmail Validation in jquery
function validateEmail(email) { var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/; return emailReg.test( email ); } Return TRUE/ FALSE
Read MoreJquery- Email Validation
function isEmail(email) { var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/; return regex.test(email); } It’s returns true or false
Read MoreGet URL segments in core php
//– META KEYWORDS:: – $XSHRMETA_REQUEST_URI_PATH = parse_url($_SERVER[‘REQUEST_URI’], PHP_URL_PATH); $XSHRMETA_URI_SEGMENTS = explode(‘/’, $XSHRMETA_REQUEST_URI_PATH); //print_r( $XSHRMETA_URI_SEGMENTS); // …
Read Morephp- Redirect the same page
# Its Redirects the same page where it is.. header(“location:http://{$_SERVER[‘HTTP_HOST’]}{$_SERVER[‘REQUEST_URI’]}”); using this post request can be blanked or empty no duplicate data will insert in …
Read Morephp- How to get image height and width
# LIST IMAGE INFO list($width, $height, $type, $attr) = getimagesize($_FILES[“img”][‘tmp_name’]); echo $width; // shows width echo $height; // shows height
Read MorePhp – How to add day,month,year with current date
## ADD DAYS, MONTHS, YEAR WITH CURRENT MONTHS:: FORMAT:: date(‘Y-m-d’, strtotime(‘+2 months’)); EXAMPLE:: $duration = 5; if($calas == “days”) { $plus = ‘+’.$duration.’ …
Read MorePhp – How to use form Validation in CodeIgniter
## MAKE REQUIRED AND UNIQUE IN CODEIGNITER // ONLY REQUIRED FIELDS $this->form_validation->set_rules(‘answer4’, ‘Answer Four’, ‘required’); // ONLY REQUIRED WITH DATABASE UNIQUE VALUE $this->form_validation->set_rules(‘title’, ‘Question …
Read More