Code: <div class="container"> <div id="preview"></div> <form id="form" method="post" enctype="multipart/form-data"> <div class="form-body"> <div class="form-group"> <label class="control-label col-md-3">Title</label> <div class="col-md-9"> <input name="title" placeholder="Holiday" class="form-control" type="text"> </div> </div> </div> <div class="form-body"> <div class="form-group"> <label class="control-label col-md-3">Image1</label> <div class="col-md-9"> <input type='file' name='image1' class='form-control'> <img class="image1 img-thumbnail" style="display:none" alt="image1" width="100" height="100" /> </div> </div> </div> <div class="form-body"> <div class="form-group"> <label class="control-label col-md-3">Image2</label> <div class="col-md-9"> <input type='file' name='image2' class='form-control'> <img class="image2 img-thumbnail" style="display:none" alt="image2" width="100" height="100" /> </div> </div> </div> <button type="button" id="btnSave" onclick="save()" class="btn btn-primary">Save</button> </form> <div id="err"></div> </div> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script type="text/javascript"> function save() { $.ajax ({ url: "ajax.php", type: "POST", data: new FormData(this), …

Member Avatar
+0 forum 0

I am implementing stay login functionality using codeingiter 3 Steps: 1. If user signin's successfully , checking the remember me checkbox. 2. Then i am setting 2 cookies for that user. 3. $cookie 1: is 128 length random string ,(series) 4. $cookie 2: is the hash of (email,password,ip,useragent). (token) 5. Now i am storing the series , hash(token) in a table <user_cookie>. <user_cookies> user_id(fk) series(128 varchar) token(200 varchar) Now my doubt is how should validate autologin, when user visits my webpage next time? $rand128_hex = bin2hex(openssl_random_pseudo_bytes(16)); $cookie1 = array( 'name' => 'series', 'value' => $rand128_hex, 'expire' => '86400' ); $cookie2 …

Member Avatar
+0 forum 0

i want to group all photos in slideshow depending on description(topic) as show in db image. if description changes another slideshow should be displayed with that description relates photos.how to write such loop. <?php $sql="SELECT * FROM activities WHERE cat='PRABHUDDHA BHARATH SEMINARS' GROUP BY descr "; $res=mysqli_query($con,$sql); while($row=mysqli_fetch_array($res)) { ?> <div> <?php echo "<img u='image' src=admin/$row[photo] />" ; echo "<img u='thumb' src=admin/$row[photo] />" ; ?> </div> <?php } ?>

Member Avatar
+0 forum 0

i want some like this in jquery and php(plugin) see img

Member Avatar
+0 forum 0

how to integrate language translator to website , without using google translator

Member Avatar
+0 forum 0

<?php @session_start(); //database connection/// include("db.php"); // Check to see there are posted variables coming into the script if($_SERVER['REQUEST_METHOD'] != "POST") die("No Post Variables"); // Initialize the $req variable and add CMD key value pair $req = 'cmd=_notify-validate'; // Read the post from PayPal foreach ($_POST as $key => $value) { $value = urlencode(stripslashes($value)); $req .= "&$key=$value"; } // Now Post all of that back to PayPal's server using curl, and validate everything with PayPal // We will use CURL instead of PHP for this for a more universally operable script (fsockopen has issues on some environments) $url = "https://www.sandbox.paypal.com/cgi-bin/webscr"; //$url …

Member Avatar
+0 forum 0

The End.