3,454 Topics

Member Avatar for
Member Avatar for piers

I have been given a homework this is it: [QUOTE]Homework 7 Due in your lab in week 10 For this homework you are expected to write one program, which consists of a main method and an insertWord() method. You must work on the program outside the formal laboratory sessions. The …

Member Avatar for Member #46692
0
109
Member Avatar for lydia21

hi i want to check the uname from the database and the session variable... please tell how to write if condition <? $link=mysql_connect($hostname, $username, $password); mysql_select_db($dbid) or die("unable to connect"); echo "<table width='60%'>"; $result=mysql_query("SELECT jobid,jobtitle,cname,uname FROM please"); print "<tr><td>jobtitle </td> <td>cname</td></tr>"; if ($result[3] == $_SESSION[uname]) { for ($i = 0; …

Member Avatar for lydia21
0
106
Member Avatar for stiff

through asp i am giving a AJAx call. There i am setting a session, then i am retriving that value in asp. but always it is showing the previous session value. i want that it should display new session value.

Member Avatar for ~s.o.s~
0
41
Member Avatar for scottrdj

Hi, I have a website that was developed a few years ago for me, site is proburn.com and has been happily running for a few years, however I have had to chnage hosts and I am now gwetting all sorts of errors. latest one is where a customer is trying …

Member Avatar for CertGuard
0
218
Member Avatar for pdb

Hello, I've read all about how to expire a session, but this doesn't seem to be what I need. (unless I misunderstood it) The way I understand sessions, it's all about expiring the _cache_. Here's what I want: I want to allow my site visitors to search without logging in. …

Member Avatar for buddylee17
0
81
Member Avatar for yenyen

hallo all..i got some problem in using the session in ASP. i hope u all can guide me in detail. i have a form, inside got 3 drop down and one text box. and got one Add button. wat i wan to do is: after fill in the value for …

Member Avatar for yenyen
0
106
Member Avatar for mahendiran

Hi, This is mahendiran,please anybody help me.... i m getting error like cast from type ‘DBNull’ to type ‘String’ is not valid. Dim newcollection As String newcollection = "select sum(AMT_PAID) from PAYMENT_HISTORY where BILL_NO LIKE '*" & Session("BRANCH") & "*' and BILL_MODE='NEW' and " If Drp_From_Day.SelectedIndex <> 0 And Drp_From_Month.SelectedIndex …

Member Avatar for emurf
0
118
Member Avatar for agrawalashishku

Hello Friend, Please answer my question. I am behind a firewall and proxy server. I enter the proxy password on firefox and when connect to any site that uses java, the java virtual machine also asks me for proxy password. It actualy does not ask me but it shows the …

Member Avatar for peter_budo
0
99
Member Avatar for mishrarajesh44

hii.. i am getting error msg when running this program. pls verify if anybody can.. code: <?php session_start(); //session_register("username"); //session_encode(); //$url="Location:loggedin.php?PHPSESSID=".$PHPSESSID; // header($url); if(isset($_POST['submit'])) { if(empty($password)){echo "No password specified";} $connection=mysql_connect("localhost","wwwuser_raja","kalika"); if(!$connection) {echo"<b>connection not set...</b><br>";} $sel=mysql_select_db("wwwuser_raja"); if(!$sel) {echo"<b>database not selected...</b><br>";} $query="select password from users where username='".$username."'"; $result=mysql_query($query); if($row=mysql_fetch_array($result)) { if(!(md5($password)==$row["password"])) {echo …

Member Avatar for ryan_vietnow
0
100
Member Avatar for nice_true

Hi! Can anyone make it clear as to when to use cache variables and when to use session variables, i.e. what is the difference between the two?

0
111
Member Avatar for AnonymousNow

I'm not sure if this is linked to XP, but since it persists beyond my browser, I'll have to assume it does. Sometimes, seemingly randomly, when I'm typing, my keyboard suddenly changes modes. Instead of typing out letters, the keys activate different statusbar and toolbar menus and windows, like opening …

Member Avatar for bigozone
0
128
Member Avatar for SheSaidImaPregy

I am having a problem with my datalist and repeaters. Below is the code. For some reason, when it searches the database and returns results, it counts the correct number of results, but only displays the correct number minus one. So if it returns 3 results, it only displays 2, …

Member Avatar for SheSaidImaPregy
0
80
Member Avatar for balagangadharm

hi, Iam using tomca,mysql.In my appl ,i wrote a code to upload an image using jps.its working fine in my system.But wen i access my appl from another system(in LAN),iam unable to upload the image.p[lz tell me wats wrong in my code PreparedStatement st=con.prepareStatement("update login set photo=? where uid=?"); File …

Member Avatar for jwenting
0
111
Member Avatar for Neeraja

Hello All, I have developed a web application that has one form with several text boxes and 2 buttons submit and next. On clicking the next button, the old values in the text box gets cleared and gives way to enter new values in the text box. In the "next" …

Member Avatar for shubhadaamar
0
181
Member Avatar for SergioQ

Well, am new here, so I really hope I am in the correct forum. My question is both simple and confusing at the same time, but please humor me. It goes like this: My website is mostly Perl and when someone logs in, I record the session in a database, …

Member Avatar for KevinADC
0
129
Member Avatar for piers

this is the homework I have to do [QUOTE] This homework is due in week 3. You must work on the program outside the formal laboratory sessions. The program must be ready to be executed at the start of the scheduled laboratory session. Remember you may be asked to explain …

Member Avatar for piers
0
185
Member Avatar for anto_nee

Hi to all am new to asp and am parcipating a project on asp in our company... here i got one prob that passing the parameter thru onclick.. i tried a lot but nothing materialize.. i have 5 buttons here.. for all buttons same function that i have to submit …

Member Avatar for SheSaidImaPregy
0
1K
Member Avatar for KKopplien

[QUOTE]I am trying to access a NetMail server through LDAP port with <cfldap> I keep getting an error Diagnostics: An error has occured while trying to execute query :[LDAP: error code 32 - NDS error: no such entry (-601)]. One or more of the required attributes may be missing/incorrect or …

Member Avatar for KKopplien
0
162
Member Avatar for rrocket

I am trying to submit a form with .submit(), but I am having issues passing the values from my form... Here is what I have so far: [code=c#] <TITLE>ASPXTOASP.aspx</TITLE> <script language="C#" runat="server"> private void Page_Load(object sender, EventArgs e){ //We grab all the session variable names/values and stick them in a …

Member Avatar for MattEvans
0
141
Member Avatar for cutekola

...kindly help me with this..........my code doesn't work.... ...create a program that will ask questions and at the end of the session it will display the total number of correct answers and the equivalent grade.... ...thanks..... import javax.swing.JOptionPane; public class questions { public static void main(String[] args) { int score=0; …

Member Avatar for peter_budo
0
164
Member Avatar for 66eagle

opendata.jsp_____________ <% Class.forName("org.gjt.mm.mysql.Driver"); String url="jdbc:mysql://localhost:3306/mydata"; Connection con=DriverManager.getConnection(url,"root","123"); Statement smt=con.createStatement(); ResultSet rs; //int rs; %> counte.jsp_________________________________ <%@ page import ="java.sql.*"%> <%@ page import="java.util.*"%> <%@ include file="opendata.jsp"%> <%@ page contentType="text/html;charset=GB2312"%> <% request.getSession(true); int month,day,hour,today,total,select; String time; int sql; String errmsg=request.getParameter("errmsg"); GregorianCalendar calendar; calendar=new GregorianCalendar(); month=calendar.get(Calendar.MONTH)+1; day=calendar.get(Calendar.DAY_OF_MONTH); hour=calendar.get(Calendar.HOUR_OF_DAY); time="m"+String.valueOf(month)+"d"+String.valueOf(day); //sql="select * from counter …

Member Avatar for masijade
0
279
Member Avatar for faranak

hi I am having a problem closing a popup and open a new page when a button click in popup window. when i close popup,new web page open in popup window.What I want to do is close the popup and return to the original window. Please help me. thanks protected …

0
65
Member Avatar for faranak

Hi I have a list like List<vahed>. this list fill from vahed class.when i want to bind list into gridview ,I store it in Session. but when this list bind to grid view,data is empty. my code: [INLINECODE] //class vahed public List<Vahed> SelectAll() { Vahed V = new Vahed(); string …

Member Avatar for SheSaidImaPregy
0
260
Member Avatar for yagapapa

Hi All Im creating a financial ratio calculator project. After calculating ratios there is a button that gives the users the option to perform another ratio calculation... Initially i used this: controlname.text = "" but then that is not effective, because when try to calculate ratios still in the same …

Member Avatar for yagapapa
0
91
Member Avatar for SheSaidImaPregy

Hello, I need to access the database when a session unexpectedly ends or session times out. This is just for telling the database to update a field for when the user last logged in. The reason I need this is that it saves me tons of coding for other stuff …

Member Avatar for Fungus1487
0
127
Member Avatar for mpro

I need to set an environment variable with a scope of the windows session. Normally when you set a variable in dos this variable lasts as long as the command window is open. The thing is a the developers need to read an environment variable in every session of a …

0
61
Member Avatar for balagangadharm

I have a variable of type float.can anyone tell me how to put this in session as an attribute so that i can use it in other pages.plz reply

Member Avatar for masijade
0
65
Member Avatar for mrityunjay22

jsp code <%@ page import="temperory.Mrityunjay.*"%> <%@ page import="com.MindShaper.ClassTeacher.Utility.BaseServlet.VSHttpServlet" %> <%@ page import="java.util.*"%> <%@ page import="com.MindShaper.ClassTeacher.Utility.Helper.*" %> <%@ page import="ClassTeacher.SessionObject"%> <%@ page import="ClassTeacher1.MemoryTables"%> <HTML> <HEAD> <TITLE>Student Information</TITLE> <!-- for confirm () --> <script language="JavaScript1.2" src="functions.js" type="text/javascript"> </script> <link rel="stylesheet" href="lib.css" type="text/css"> <style type="text/css"> <!-- td { padding-left: 15px; } --> </style> …

Member Avatar for mrityunjay22
0
173
Member Avatar for fogofogo

Hello All, I have a page that passes a session variable to another page which is then used in an if/else statement. For some reason itsa giving me error messages, and I'm not sure whats up with it. Heres the page that creates the variable [CODE]<?php session_start(); // start session …

Member Avatar for vigin
0
147
Member Avatar for gil857

Howdy all, I'm making an authentication script using sessions variables, but the varible seems to disappear when trying to access it from another page. A simple form on the home page takes a user name and password, it then goes to an authentication page. The authenticate page is making a …

Member Avatar for gil857
0
572
Member Avatar for ezb

I have two slight problems I simply cant find an answer to anywhere, the first, only small. I have my database printing out items from a database into a select box, this is giving me blank options even though there are none in the database, I remember having this problem …

Member Avatar for Yashua
0
244
Member Avatar for paski

Hi I am trying to create something like online shop with products and a shopping basket. User can see an html form and edit it. The form is represented by bean. After editing it, he should be able to create new, or submit all products he edited (add actual bean …

Member Avatar for paski
0
168
Member Avatar for thunderbbolt

I am trying to get this program login to work with sessions. I don't know what I am doing wrong, but part of my code is displaying on the page instead of just my login form. Here is my code [code] <?php session_start(); $_SESSION['name']= "test4"; define('DBSERVER', 'localhost'); define('DATABASE', 'dbname'); define('USER', …

Member Avatar for thunderbbolt
0
148
Member Avatar for berty_xx

Hi, I write program whitch read data from more industrial PC by SNMP. In program I use functions SnmpMgrOpen(agent, community, timeout, retries); SnmpMgrRequest(*session, requestType, &variableBindings,&errorStatus, &errorIndex) and SnmpMgrClose(*session). Problem is in read data. From first 3 pc data is readed correctly, but from next pc no. Function return no error, …

0
61
Member Avatar for ajay_tabbu

I want help. [B]what i do[/B]:I creat three pages 1. login.php, 2. welcome.php, 3.change password.php. when we login(right Id & P/W) welcome.php will open,On that page i have put two option i. Logout, ii.change password.,[U]on clicking on Logout we will logout to enter again we have to enter password.As session …

Member Avatar for somedude3488
0
314
Member Avatar for world_weapon

Hello everyone, I have an issue that I can't seem to resolve with integrating phpBB into the rest of my site so that login and session can be intact. Well, for the most part, the whole scheme seems to work at first glance. I noticed that pages that have the …

Member Avatar for world_weapon
0
160
Member Avatar for himanjim

Hey friends I've a doubt regarding my password authentication code given below If we use `session _start` function one need not use the `cookies` as $_SESSION['user'] = $username; $_SESSION['password'] = $password; functions do the same job that cookies would have done so my cookies code is just a clutter?? Here's …

Member Avatar for Puckdropper
0
201
Member Avatar for JLSBA2007

All our VPN users, OWA users, and Good link users are experiencing lock outs when they reach a maxium number of Mapi sessions and then are prevented from establishing another session. This is now becoming a weekly problem. This has been an issue for sometime now and for a while …

Member Avatar for chris5126
0
76
Member Avatar for soso30

hi all, i built outlook plug_in to change the numbers in contact list.when i tried the application for small contacts list ,it did the functionality i want. but, when i used the application for large contacts . it did not change all the contacts item . Is the problem in …

Member Avatar for ronbhall
0
103
Member Avatar for ThePhenom

I am hoping someone can help guide me in the right direction. I have a project for class that I am working on and I could use some help. The project guidelines are below as well as my code thus far. I have gotten this far with it but am …

Member Avatar for ThePhenom
0
145
Member Avatar for kedarkhedkar

Hi, I am developing online examination in servlets/jsp. the problem with I stucked with is how to show user a timer. the jsp page which showing current question to user should show time remaining & that time should be continuously decreasing by 1 sec. One approch is to use applet …

Member Avatar for ~s.o.s~
0
166
Member Avatar for SheSaidImaPregy

I need to figure out how to bind data and call it back anywhere on the page. Basically, this is what I am trying to do. Keep in mind that I am an asp programmer and am very new to ASP.NET. I have build a custom login page that works. …

Member Avatar for SheSaidImaPregy
0
180
Member Avatar for geeta40

Hi New to ASP auth_in.asp [CODE]If (Mgr_Access = TRUE) And (Adv_Access = TRUE) Then %> <!-- #include file = "login_option.asp" --> <% END if[/CODE] login.asp [CODE] <!-- MAIN BODY --> <p><b>Choose your Login Option</b></p> <form method="post" action=""> <input TYPE="radio" NAME="Login" VALUE="MG" CHECKED>Manager <input TYPE="radio" NAME="Login" VALUE="AD">Advisor </br> </br><input type="submit" value="Submit"> …

Member Avatar for Member #210412
0
87
Member Avatar for SLG29

I wonder if anyone can help with this problem I have I'm trying to create a shopping cart with session variables, there are 5 buttons on the form and by clicking 1 of these displays the relevant product and price in session variables in textboxes on the next form, the …

Member Avatar for ptaylor965
0
86
Member Avatar for thirunavukaras

Hai.. Is there possible to use module class in web application.. in web application i have one module class.. the module class one variable declared to assing particular value then i am go to mywebpage to print that modulevariable the result is shown but the same time i have changed …

0
69
Member Avatar for 04ayasin

hi my windows 98 PC keeps on displaying the following error stop C000021A {Fatal System Error} The session manager initialization process terminated unexpextadly with status of (0x00000000 0x00000000) the system has been shutdown. can anybody help me resolve this problem? Thanks for your help in advance.

Member Avatar for cguan_77
0
211
Member Avatar for balagod

I used the following code for session time out in idle state window. after a minute popup will arise, if user didn't respond alert message within 2 minuts session will timeout . firefox it's working fine. But IE auto timeout in 2 minuts is not working , if user is …

Member Avatar for balagod
0
148
Member Avatar for apontutul

I want to get a parameter from the URL to another jsp page. for eg: [URL="http://localhost:8080/vote-0.3/view-poll.jsp?poll_id=4"]hxxp://localhost:8080/vote-0.3/view-poll.jsp?poll_id=4[/URL] get this(poll_id=4) in my new jsp & then pass this parameter to its bean & servlet. the link to the new jsp is in this page. what do I need to do in my …

0
98
Member Avatar for ttamilvanan81

I need to do the slideshow action for the database images. If i get all the images from the Database, i need to provide the slideshow for all those images. Here is the code for i have done earlier. <%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@ page language="java" %> <%@ page import="java.sql.*"%> …

Member Avatar for MidiMagic
0
160
Member Avatar for balakumar1982

I have a problem as following... # I have stored some value in session to reach a Page "A" # I have other pages "B", "C", "D". # If I am moving from Page "A" to "B", I should not clear my session value but If I am moving from …

Member Avatar for MattEvans
0
190

The End.