
ksumanth
Members-
Posts
34 -
Joined
-
Last visited
ksumanth's Achievements

Member (2/5)
0
Reputation
-
Hello Everyone, I am quite new to jquery. I have a form and i need to validate characters,number,mobileno using jquery (without using regular expression). i dont have any idea of this can any one have links or plugins, kindly provide me Thanks sumanth
-
can you provide me any example regarding status
-
Hello Everyone, admin: I created one login form using sessions. In that login form i given some conditions 1. If status is inactive, username and password not match it is not going to inside page(inside.php). administrator 2.At the same i create administrator panel and i given two options for status 1.Active 2.InActive 3.Suppose i login in admin panel (username, password, status is active ).i am in inside.php. Now i am going to administrator panel and just change the status of userlogin "Inactive" If i refresh "inside.php" it should come to login page can any one have an idea how to make
-
In my hosting cpanel where to check
-
Hi EveryOne I have the script below to upload and unzip files on my website. The problem is that i can only get it ti work on small files that about 2 MB in size. When I try to upload a file that is 10 MB, the progress successfully runs to 100%, then the page refreshes, and i am back at the upload page with NO error message and nothing is uploaded. <?php if($_FILES["zip_file"]["name"]) { $filename = $_FILES["zip_file"]["name"]; $source = $_FILES["zip_file"]["tmp_name"]; $type = $_FILES["zip_file"]["type"]; $name = explode(".", $filename); $accepted_types = array('application/zip', 'application/x-zip-compressed', 'multipart/x-zip', 'application/x-compressed'); foreach($accepted_types as $mime_type) { if($mime_type == $type) { $okay = true; break; } } $continue = strtolower($name[1]) == 'zip' ? true : false; if(!$continue) { $message = "The file you are trying to upload is not a .zip file. Please try again."; } $target_path = "/home1/cleaverc/public_html/temporary/".$filename; if(move_uploaded_file($source, $target_path)) { $zip = new ZipArchive(); $x = $zip->open($target_path); if ($x === true) { $zip->extractTo("/home1/cleaverc/public_html/temporary/"); $zip->close(); unlink($target_path); } $message = "Your .zip file was uploaded and unpacked."; } else { $message = "There was a problem with the upload. Please try again."; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Untitled Document</title> </head> <body> <?php if($message) echo "<p>$message</p>"; ?> <form enctype="multipart/form-data" method="post" action=""> <label>Choose a zip file to upload: <input type="file" name="zip_file" /></label> <br /> <input type="submit" name="submit" value="Upload" /> </form> </body> </html> What am I doing wrong? What needs to be changed?
-
Thanks i got this
-
Hello everyone, I have a form and filling all the details. Once form is filled , while click on submit button i just display alert "Please check your all information one more time" like this can any one know how to do this Thanks sumanth
-
Thank you i got this
-
Thank You I got this but even i have one more option called radiobutton and if i click radiobutton it is accepting only first value. I mean value display in textbox and totalsum calculation is taking default value here is my code can you fix this <html> <head> <script type="text/javascript"> function updateTotal() { var date0 = document.getElementById('date0'); var date1 = document.getElementById('date1'); var date2 = document.getElementById('date2'); var amount = 0; amount += date0.checked ? parseFloat(date0.getAttribute('data-price')) : 0; amount += date1.checked ? parseFloat(date1.getAttribute('data-price')) : 0; amount += date2.checked ? parseFloat(date2.getAttribute('data-price')) : 0; var totalpages = parseInt(document.getElementById('totalpages').value); var packages = parseInt(document.getElementById('packages').value); document.getElementById('total').value = amount; document.getElementById('pagesprice').value = totalpages; document.getElementById('packagecost').value = packages; document.getElementById('totalprice').value = amount + totalpages + packages; } </script> </head> <body> <table> <tr> <td id="datecontainer" onchange="Process(this.options[this.selectedIndex].value)"> <input id="date0" type="checkbox" name="form[date]" value="blue" data-price="10" onChange="updateTotal();" />product 1(10)<br /> <input id="date1" type="checkbox" name="form[date]" value="green" data-price="30" onChange="updateTotal();" />product 2(30)<br /> <input id="date2" type="checkbox" name="form[date]" value="red" data-price="50" onChange="updateTotal();" />product 3(50)<br /> </td> <tr> <td> Total cost Product: <input name="total" id="total" type="text" readonly="readonly" /> </td> </tr> <tr> <td> Pages Price <select id="totalpages" style="width:205px" onchange="updateTotal()"> <option value="0">Select Pages</option> <option value="5">5 Pages</option> <option value="10">10 Pages</option> <option value="15">15 Pages</option> <option value="25">25 Pages</option> <option value="30">30 Pages</option> <option value="100">More than 35 Pages</option> </select> </td> </tr> <tr> <td> Total cost Pages: <input name="pagesprice" id="pagesprice" type="text" readonly="readonly" /> </td> </tr> <tr> <td>Package <input type="radio" name="packages" id="packages" value="100" onclick="updateTotal();" />50MB <input type="radio" name="packages" id="packages" value="200" onclick="updateTotal();" />100MB <input type="radio" name="packages" id="packages" value="300" onclick="updateTotal();" />200MB </td> </tr> <tr> <td> Total Package Cost: <input name="packagecost" id="packagecost" type="text" readonly="readonly" /> </td> </tr> <tr> <td> Total Pagesprice+Total cost Product+Total Package Cost <input name="totalprice" id="totalprice" type="text" readonly="readonly" /> </td> </tr> </table> </body> </html>
-
Hello Everyone, I created a form and in that i have "Multiple Checkboxes" and "Dropdown list ". If i click check boxes the value should add "Indual textbox+Total Textbox". 2. I have one more option select No of pages if i select dropdown No of pages , It should display "Indual textboxprice+Checkboxselectprice". I did all the calculations but the total value is displaying NAN if i click on checkboxes Here is my code can any one fix this
-
Hello Everyone, I created a form and in that i have "Multiple Checkboxes" and "Dropdown list ". If i click check boxes the value should add "Indual textbox+Total Textbox". 2. I have one more option select No of pages if i select dropdown No of pages , It should display "Indual textboxprice+Checkboxselectprice". I did all the calculations but the total value is displaying NAN if i click on checkboxes Here is my code can any one fix this <html> <head> <script type="text/javascript"> function updateTotal(){ var date0 = document.getElementById('date0'); var date1 = document.getElementById('date1'); var date2 = document.getElementById('date2'); var amount = 0; amount += date0.checked ? parseFloat(date0.getAttribute('data-price')) : 0; amount += date1.checked ? parseFloat(date1.getAttribute('data-price')) : 0; amount += date2.checked ? parseFloat(date2.getAttribute('data-price')) : 0; document.getElementById('total').value = amount; var pagesprice=document.getElementById('totalpages').value; document.getElementById('pagesprice').value=pagesprice; var domainprice=document.getElementById('totalprice'); domainprice.value =amount+parseInt(pagesprice); } </script> </head> <body> <table> <tr> <td id="datecontainer" onchange="Process(this.options[this.selectedIndex].value)"> <input id="date0" type="checkbox" name="form[date]" value="blue" data-price="10" onChange="updateTotal();">product 1(10)<br /> <input id="date1" type="checkbox" name="form[date]" value="green" data-price="30" onChange="updateTotal();">product 2(30)<br /> <input id="date2" type="checkbox" name="form[date]" value="red" data-price="50" onChange="updateTotal();">product 3(50)<br /> </td> <tr><td>Total cost Product: <input name="total" id="total" type="text"> </td></tr> <tr><td>Pages Price <select id="totalpages" style="width:205px" onchange="updateTotal()"> <option value="">Select Pages</option> <option value="5">5 Pages</option> <option value="10">10 Pages</option> <option value="15">15 Pages</option> <option value="25">25 Pages</option> <option value="30">30 Pages</option> <option value="100">More than 35 Pages</option> </select> </td></tr> <tr><td>Total cost Pages: <input name="pagesprice" id="pagesprice" type="text"> </td></tr> <tr><td>Total Pagesprice+Total cost Product <input name="totalprice" id="totalprice" type="text"> </td></tr> </table> </body> </html>
-
Hello everyone, I created one form in that i created some checkboxes like price1,price2,price3. And one Textbox for displaying value using javascript (or) Jquery (or) Ajax Now my problem is if i checked price1, the price1 value should display in Texbox. And if i checked two Checkboxes(price1,price2) the both values should add and display in textbox. Can anyone help me out. Thanks sumanth
-
Hi i given flag and it is working fine. While click on suspend entire row i just want to disable can you have an idea.
-
Thanks i got this