52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for theGrinch

I'm trying to use html onclick in java servlets like this; ShoppingCart cart = new ShoppingCart(); out.println(" <h1><button type=\"button\" onclick=\"cart.addBook(b.getIsbn())\">add</button> </h1>"); addBook is a method in ShoppingCart class, and I'm calling it when the button is clicked, but it's not getting called. Please help.

Web Development html-css java java-jsp
Member Avatar for Tu Dinh
0
4K
Member Avatar for Tu Dinh

Hi every body, I tried to search for my own problem, I would think this must be popular issue but unfortunately I found no solution in Google. I tried to use `(boolean) session.getAttribute("IsValidUser")` to get the attribute of Session, but that caused error: org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for …

Web Development apache java-jsp session
Member Avatar for Tu Dinh
0
478
Member Avatar for jj.dcruz

Hi there I'm having a problem uploading my file with a progressbar. the problems are 1. i cannot upload any photos at all 2. i cannot find/promt errors **here is my full codes:** this is for php <?php if(!empty($_FILES['file'])){ foreach ($_FILES['file']['name'] as $key => $value) { $file = $_FILES['file']['name']; $allowed …

Web Development file-system javascript php
0
103
Member Avatar for jackjuma12

Hi guys I am trying to write some code here in jsp. I want to select some employee using its attributes. The first option is to select the criteria on which I want to base my search e.g. EMP ID. When I select this it should load for me all …

Web Development java-jsp session
Member Avatar for stultuske
0
131
Member Avatar for RikTelner

There is no frickin way I will install every single OS with every single browser of every single version. To check if my website is compatible with "everybody". I know, you can't make it compatible for everybody, since there is hell-lotta crap between screen and server. But how to check …

Web Development
Member Avatar for RikTelner
0
116
Member Avatar for Binoy_1

I am working on a project where I am trying to track email opens by inserting an image in it and detecting when it is loaded from the server. The loading is performed using a php script. I am trying to load 2 different images. Lets call them image1 and …

Web Development email image web-browser
Member Avatar for Binoy_1
0
392
Member Avatar for mattyd

[This is theoretical at this point - No code is written for this] On the project I am building (A forum of sorts) I will be the Admin: I will be the only person able to edit posts. Even the User, save for a 15-minute window (after posting), will **not** …

Web Development javascript
Member Avatar for iamthwee
0
98
Member Avatar for ebanbury

Hi I had an field to upload pdf's only, which worked well. I want to add the option to add docs as well as pdf's and now it is not working: if (!empty($_FILES['pdf_main']['name']) && ($_FILES['pdf_main']['type']!="application/pdf" || $_FILES['pdf_main']['type']!= "application/msword")){ echo '<p class="white">Please check the certificate uploaded. It should be a PDF …

Web Development pdf php
Member Avatar for cereal
0
191
Member Avatar for kCoder

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace ConsoleApplication1 { class collectinexample { ArrayList mylist = new ArrayList(); mylist.Add("apple"); mylist.Add("grapes"); } } this is my code but m getting an error "Error 1 Invalid token '(' in class, struct, or interface member declaration " plz help

Web Development apple asp.net c#
Member Avatar for JorgeM
0
133
Member Avatar for Siberian

Hi, why is my #div not [hiding](http://jsfiddle.net/WildWind/Lcx78/) when it's clicked, maybe placing it within a document.ready function wasn't needed ?

Web Development javascript javascript-jquery
Member Avatar for Siberian
0
218
Member Avatar for justin22

<?php session_start(); include 'connect.php'; <?php session_start(); include 'connect.php'; if(isset($_POST['submit'])) { //$username = $_POST['username']; $password = md5($_POST['currentpassword']); $newpassword = md5($_POST['newpassword']); $confirmnewpassword = md5($_POST['newpassword1']); $user_id = $_SESSION['user_id']; var_dump($user_id); $sql = "SELECT * FROM user WHERE user_id=$user_id "; var_dump($sql); mysql_select_db($dbname) or die(mysql_error()); $result = mysql_query($sql); //mysql_fetch_assoc($result); while($data = mysql_fetch_assoc($result) ){ $userPassword = $data['password']; …

Web Development php
Member Avatar for Mike_danvers
0
194
Member Avatar for Владимир_1

Hi to all! May be it's a very very stupid question, but I am stuck on it... So my problem is the second - I have array $pacient[$val['pacientid']][] = $val['f_name']." ".$val['s_name']; And I want to compare values in this array, so how I go throught array: $pacient = array_unique($pacient); foreach($pacient …

Web Development php
Member Avatar for cereal
0
322
Member Avatar for rajendher

dear programmers, how to show urls `(http://example.com/mtfiles/2014/2014.html)` from to `(http://example.com/2014.html)`. server at plesk panel anybody please tell me . thank you

Web Development php
Member Avatar for rajendher
0
315
Member Avatar for showman13

This may sound strange, but I'm having an issue I can't explain... and have been researching why for the past day and a half with no results. All of a sudden on Friday Morning I was unable to log into a members back office, which is based on session variables. …

Web Development php session
Member Avatar for showman13
0
125
Member Avatar for fiddler80

Hello. I have a php script that will backup my databases and ftp them to another server. All works fine via a cron job - but the backups are piling up and I'd like to add some code to the script to delete all the old backups - and just …

Member Avatar for fiddler80
0
498
Member Avatar for rpv_sen

Hi I am trying to enable the fileds with help of radio button is selected below are my code, its working fine for inserting a value in database. I can able to fetch the datas from database for display except the radio button is not getting selected from the database …

Web Development php
Member Avatar for rpv_sen
0
1K
Member Avatar for johnef_sh

I am trying to use PHP with Google map JavaScript this is my JavaScript code I have with the PHP the file name is face.php <?php if(isset($_GET['p'])){$p=$_GET['p'];} ?> <!DOCTYPE html > <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <title>Property Map</title> <link rel="stylesheet" href="../../../../css/960.css" type="text/css" media="screen" charset="utf-8" /> …

Member Avatar for johnef_sh
0
1K
Member Avatar for CarterLangley

Hi guys, I have a mysql database with many tables. Instead of creating a page each to enter info into the relevant tables, is it possible to have a form created dynamically depending on what table I want to insert information into? Database has 20 tables in it at present, …

Web Development mysql php
Member Avatar for CarterLangley
0
183
Member Avatar for Iikeloa

Hi I'm facing a problem with having two forms in the same page.The problem is that the action is taken from only the first form. For example : <html> <body> <form action='test.php' method='POST'> <input type='submit' /> </form> <form action='testme.php' method='POST'> <input type='submit' /> </form> </body> </html> when I hit on …

Web Development php
Member Avatar for Iikeloa
0
285
Member Avatar for showman13

There was a thread that covered part of this issue, but it never really got resolved completely. I now have everything working the way it is supposed to with the single exception of the transfer of the .csv file from my server to the secure server of my vendor. If …

Web Development php
Member Avatar for iamthwee
0
2K
Member Avatar for sikander123

i have much tried for this solution but not any well solution found.if any one know how can we compare two audio files by their voice and after comparing it give the result of matching voices.please if any one now the solution told me.

Web Development audio php
Member Avatar for veedeoo
0
1K
Member Avatar for ruhestorer

Hi, On copy event, i need to display confirm dialog (we use fancybox dialogs in all project) and depending on user choice add some text (reference) to the copied text or leave the text as it is. And the problem is that - when dialog appears copy function continues to …

Web Development javascript
Member Avatar for Troy III
0
342
Member Avatar for Binoy_1

How is a request like www.xyz.com/ABCD or www.xyz.com/ABCD?x=1 processed at the server end? Since there is no extension specified (for e.g. ABCD.php or ABCD.aspx), what does the server do? I've seen quite some such URLs and was curious as to just how it works. Thanks in advance

Web Development
Member Avatar for JorgeM
0
141
Member Avatar for mherz

Good Day! I need guys help. I have a problem in my web site that was running on my local machine. Actually, months ago the page was working fine and has no error but now, it already has. The pop up message is "Line: 4723 Error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not …

Web Development asp.net
Member Avatar for mherz
0
314
Member Avatar for game4tress

I'm creating a chat system and the problem is that when testing with two users, the secound user (entering the system) can see the first user (already loged in), but the first user will never see the next user(s) entering the system. I know that the problem comes from the …

0
212
Member Avatar for kavitha N

Hi All, Need a help on ASP.NET gridview. I need a link gridview in asp.net and when you click on particular link that details has to show in the same page. I am using Oracle database. Thanks in advance. Kavitha Kesav

Web Development asp.net oracle
Member Avatar for kavitha N
0
127
Member Avatar for neha05

Facing issue when splitting a image ,when image size is bigger,it split only part of tht image or i want that any size of image show properly according to div size after splitting.`Inline Code Example Here` <!doctype html> <html> <head> <meta charset="utf-8"> <title>jQuery PicStrips example</title> <!--<link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">--> <script …

Web Development image javascript-jquery php
0
153
Member Avatar for chrisschristou

hello dears friends develppers. i have posted similar question but i didn't get solution and i tryed diferent way but nothing done and decide to comme back, anyway. i have a `div` with `id` `login-box` inside i have login form. i get a jquery tutorial and i made it popup …

Web Development javascript-jquery
Member Avatar for sikander123
0
848
Member Avatar for prabhatsingh

i have two fields in mysql database entry time ->type time stamp and exit time->type datetype. entry time should be entered at fist submissin of form and exit time should be null..and when i update the table then the exit time fiels should be updated..but this is not happing..entry is …

Web Development mysql
Member Avatar for jj.dcruz
0
97
Member Avatar for Kniggles

hi I am having trouble on echoing a sum from a table, The mysqul works and give me the wantted result and looks like SELECT sum(brick) FROM `goodship` this is the code i am trying to get to show it on the site, <html> <head> <?php $con=mysqli_connect("hostwiththemost.com","bulderbob","superscreatpassword","shipstable"); if (mysqli_connect_errno()) { …

Web Development php
Member Avatar for kgavhane12
0
229
Member Avatar for genwes

Hi, i've been asked to create a visit counter using checkboxes and a submit button. When a form (available form - code below) is submitted (pressed visit button) a script should work out which properties have been selected (using checkboxes) by the user and then add one to the Visits …

Web Development gui php
Member Avatar for genwes
0
356
Member Avatar for ecronic

Hi All Kindly of a problem I'm facing. Using Ember Media Manager, I exported my list of movies in custom template. The template is amazing shows exactly what a viewer would like to see on my collection. Now I have friends who are asking to place a checkbox next to …

Web Development javascript php
Member Avatar for jj.dcruz
0
171
Member Avatar for 2jewel

Hello all, I am having an issue learning some things in visual studio 2013 asp.net using vb. I am following a fellows instruction on doing a report with a parameter. In this part of the code: Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Protected Sub Button1_Click(sender As …

Member Avatar for |-|x
0
390
Member Avatar for Mike_danvers

my table structure is id|passport|stamp|postcard|poster|greetings|collage| 1|2 |3 |4 | 2|7| 6 | ................like this.. i want to show ma users the most recent entry....i am successfully able to show the entries but..my php script is showing all the earlier and recent records..i want to show just the last record inserted. …

Web Development php
Member Avatar for diafol
0
185
Member Avatar for lifeonholiday

Hi I am looking to create a personalised web page, based on the web address I am going to give somebody. So say I have the web address beanburger.co.uk and was going to send you an email and your name was barbara I would give you the url beanburger.co.uk?name=Barbara (or …

Web Development javascript
Member Avatar for stbuchok
0
167
Member Avatar for Mohamed_26

Hello, SO I am able to add one item but I would like to add more than 1 item. Can you guys help me with it? <?php require "connect.php"; $query = "SELECT `DVDID`, `NameOfTheDVD`, `Quantity`, `Price` FROM `DVD` "; $stmt = $dbhandle->prepare($query); $stmt->execute(); $num = $stmt->rowCount(); if($num>0){ while ($row = …

Web Development php
Member Avatar for Mohamed_26
0
150
Member Avatar for bobrown101

Okay, here's the deal. I have 3 webpages - the first one is a login page with two inputs (for username and password) and a submit button, the 2nd one is a page that requests from the server a list of users, and then displays them on the page, the …

Web Development javascript
0
128
Member Avatar for HunainHafeez

i am using a store procedure to access field in asp.net View, i am putting db columns in HTML table, it's workign except for one field, 'NetSalary'. It can't be accessed, it says that model doesn't contain it. i tried many ways but couldn't get to work. ALTER PROCEDURE [dbo].[GetMonthlyReport] …

Web Development asp asp.net session sql
Member Avatar for BMXDad
0
228
Member Avatar for kavitha N

Hi, When debugging the page i am getting error("argumentexception was unhandled by user code"). Can any one help me on this. in .aspx page: <asp:DropDownList ID="ddlCategoryID" runat="server" CssClass="input"> </asp:DropDownList> in .aspx.cs page: pageload : Bindmasterdata(); ---- DataTable dt = new DataTable(); using (OracleConnection Con = new OracleConnection("SConnectionString")) { Con.Open(); OracleCommand …

Web Development asp.net
Member Avatar for BMXDad
0
232
Member Avatar for mherz

Good Day to everyone... I need some help.. I just have a problem on how do I pass the value from the pop window to my main page. I have a main page where it has two textbox namely DepartmentID, DepartmentName then I also put a Search button that when …

Web Development asp asp.net c#
Member Avatar for mherz
0
2K
Member Avatar for davy_yg

Hello, I downloaded apache: [Newest Apache](http://www.apachefriends.org/index.html) And now I wonder why everytime I try to start the apache service this message appears: Attempting to start Apache service... and stuck right there. I think I have tried install and reinstall my apache several from the newest and the second newest version …

Web Development apache php
Member Avatar for davy_yg
0
265
Member Avatar for kannan mangalar

**this table dont have a id,class, i want get the content** <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td width="14%" height="25">FullName:</td> <td width="86%">kannan</td> </tr> <tr> <td height="25">email</td> <td>kanna@sample.com</td> </tr> </tbody> </table>

Web Development html-css javascript-jquery php
Member Avatar for diafol
0
229
Member Avatar for vaultdweller123

i had an htaccess for that, but the problem is... it doesn't read $_POST variables RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/]+)/$ $1.php RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$ RewriteRule (.*)$ /$1/ [R=301,L] Anyone know an htaccess that can remove the .php, add a …

Web Development php
Member Avatar for vaultdweller123
0
880
Member Avatar for chaitu11

<?php if($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login']) == 'Login'){ $email = test_input($_POST['lemail']); $password = test_input($_POST['lpassword']); $passw = sha1($password); echo sha1($passw); $sql = mysqli_query($con,"select admin_id,admin_email,admin_password from admin where admin_email = '".$email."' and admin_password = '".$passw."'"); $row = mysqli_fetch_array($sql); if(mysqli_num_rows($sql) == 1){ session_start(); $_SESSION['admin_id'] = $row['admin_id']; $_SESSION['admin_email'] = $row['admin_email']; if($_SESSION['admin_id']){ header("Location:jobpost.php"); }} else{ …

Web Development php
Member Avatar for jj.dcruz
0
8K
Member Avatar for mahaboob Basha

hi can any one help me in this.. i have a html/jsp form in that i have a field .. enter password... first time password will be stored in the databse... from second time when user enters passowrd wrongly for 3 times then it has to dispay some msg contact …

Web Development html-css java-jsp mysql
Member Avatar for rexraja
0
2K
Member Avatar for rajendher

hello everybody......... for example i want to read a 2014.html or 2014.php file like shown below. http://example.com/myfiles/2014/-dir-/2014.html. i don't want to show full path. how it is possible anybody please help me. Big up for reply.........

Web Development file-system php
Member Avatar for rajendher
0
449
Member Avatar for jj.dcruz

I have coded this today and wanted to find all the data inside my database which is start_time and end_time also date which is very easy for me to validate but when it comes to time... its really hard this is what I want to do. 1. check all the …

Web Development php
Member Avatar for jj.dcruz
0
194
Member Avatar for Evil_genius82

Hi all, I have a small silly issue which i'm embarrassed I cant solve... I have a function which loops every second to see if a status has changed. When the status changes, I want it to call a phonegap 'beep' notification. The issue is it keeps calling the beep …

Web Development javascript
Member Avatar for Luckychap
0
187
Member Avatar for centenond

Hello, long time no ask I have this problem... seems to work fine if i put it like this function cerrarTimeout() { setTimeout("cerrar()",1400); } But i want to pass a variable to cerrar() and it wont work like this function cerrarTimeout(id) { setTimeout(cerrar(id),1400); } nor like this function cerrarTimeout(id) { …

Web Development javascript
Member Avatar for Luckychap
0
337
Member Avatar for SimonIoa

Hello, i want my users to be able to create events and the event to be shown on their wall. I have this that shows a photo that they upload. <div id="imageupload" class="border"> <form id="imageform" method="post" enctype="multipart/form-data" action='message_image_ajax.php'> <div id='preview'> </div> <div id='imageloadstatus'> <img src='<?php echo $base_url;?>wall_icons/ajaxloader.gif'/> Uploading please wait …

Web Development html-css javascript
Member Avatar for SimonIoa
0
366

The End.