3,454 Topics
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 …
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; …
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.
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 …
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. …
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 …
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 …
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 …
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 …
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?
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 …
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, …
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 …
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" …
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, …
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 …
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 …
[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 …
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 …
...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; …
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 …
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 …
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 …
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 …
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 …
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 …
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
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> …
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 …
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 …
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 …
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 …
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', …
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, …
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 …
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 …
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 …
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 …
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 …
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 …
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 …
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. …
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"> …
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 …
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 …
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.
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 …
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 …
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.*"%> …
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 …
The End.