4,124 Topics
![]() | |
i have a login page, where i check login name and password if it matches i create a session.and redrect it to other page, now the problem is in localhost(WAMP Server)it works fine but in server when i host it it does not redirect it shows an error like this … | |
Hi There, For some reason the following is not working - Inside the text field it displays nothing: [CODE]<?php include 'dbc.php'; page_protect(); $rs_settings = mysql_query("select * from users where id='$_SESSION[id]'"); $row_settings = mysql_fetch_array($rs_settings); ?> <html> <head> </head> <body> <form action="index.php" method="post" name="regForm" id="regForm" > <input name="first_name" type="text" class="updateusersmall" id="first_name" value="<? … ![]() | |
Hi, I migrated the session state from "InProc" to "SqlState" by making the classes serializable, and the application works fine by retrieving data from the database and displaying it on the forms but the error message displays as follows when i try to save any information into the database from … | |
Hello I have searched and tried to implement this without any success. I have written a code to update several records using a checkbox. This works perfectly. However, I wanmt to add the pagination functionality to it, but this is proving a nightmare. Please can some one help me? Below … | |
I am having a weird problem setting a session variable. I use a session array ($_SESSION['message']) to display messages. $_SESSION['message']['type'] = error/success; $_SESSION['message']['message'] = $message; Here is the function for displaying the message: [code=php] function displayMessage(){ if(isset($_SESSION['message'])){ echo" <div class=\"notification " . $_SESSION['message']['type'] . " png_bg\"> <div> " . $_SESSION['message']['message'] … | |
Hi.. i need to learn how to send the username and password to the database and when the user logs in it should retrieve the password from the database and authenticate if the username and password is correct. Am using this jsp code and getting error in (Resultset line) [U]here … | |
Hi everyone, I am trying to write a code that receives an input from textarea, transfer that input to servlet and send an email with that input using javamail API. It seems that the codes work fine with english characters, but it doesn't work with non-english characters (i am using … | |
i get this Warning: Cannot modify header information - headers already sent by (output started at c:\appserv\www\conectarse.php:2) in c:\appserv\www\conectarse.php on line 61 and this warning happen in line 58 - header("Location: ".$MM_redirectLoginSuccess); and in line 61 - header("Location: ".$MM_redirectLoginFailed); pls i need somebody help me to resolve this this is … | |
hi every one, i need your help in php code. my error is for profile page. after implementing lots of php code in this page,my page became auto refresh in every 2secound. i don't know what happend to it. i m attaching my code pls elp me. [CODE] <?php //get … | |
Hi, I am creating web application. In that I want to set session timeout (not idle timeout). If a user logged in that time the session time will start and it automatically should detect session timeout the page should redirect to another page. How can I acheive this. | |
I need to assign a variable based on its value. ie: $variable = 'value' (if value != "Session['value']" My brain is not really working atm I know there has to be a simple way to do this. I am selecting a random file from a directory and do not want … | |
hi all will it affect my applications speed if i'll set more than 10 attribute in the session thanks in advance! | |
Hi There, I've got a membership script and a login using PHP and MySQL databases however when it logs in it simply displays a PHP page - the same one for all users. I want to be able to customise the members page so it says things like: Hello, <username>. … ![]() | |
Hey. So i was working on a shopping cart that didn't focus much on having a database to support the information. I have a snippet of code that checks to make sure there is no dublicates. if there is it just changes the quantity to the right one. but if … | |
I've searched as much as I can, for the previous two weeks between projects, and have yet to find a clear answer (I'm still new to C#, so what's clear to most does not apply.) Our website has a member login and then members can update various contact information for … | |
My main idea is to link the three combo boxes I had taken appSet, app, package comboboxes Now when I select one iten in appSet then the remaining two comboboxes should show the data related to the selected item in the appSet and when I select one item in the … | |
Hi all, I am getting the following error when I am loading the data into the ComboBox and the ComboBoxes are linked to each other I am getting the errors as below Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at client.cpm.dailyT20.CBRCPMDailyT20View.appComboBox_actionPerformed(CBRCPMDailyT20View.java:235) at client.cpm.dailyT20.CBRCPMDailyT20View.access$1(CBRCPMDailyT20View.java:234) at client.cpm.dailyT20.CBRCPMDailyT20View$2.actionPerformed(CBRCPMDailyT20View.java:227) at javax.swing.JComboBox.fireActionEvent(Unknown Source) at javax.swing.JComboBox.contentsChanged(Unknown Source) at … | |
Hi Everyone I am busy with a shooping cart but only use cookies to eliminate using a login. I have everything set so that you can add to the basket, but the problem comes in when I want to delete an item from the basket. I set the specific cookie's … | |
//problem217C #include<stdio.h> int main(void) { int a=1,b=2,c=3,d=4; printf("\n1234"); printf("\n%d %o %x %c\n",a,b,c,d); printf("1"); printf("2"); printf("3"); printf("4"); } my output is: [Session started at 2010-09-14 17:57:05 -0700.] 1234 1 2 3 1234 The Debugger has exited with status 0. This is wrong, i dont know why? can some 1 help. | |
Hey guys.. I'm working on one project which is in directory - [QUOTE]C:\Tomcat 6\webapps\ROOT\cart[/QUOTE] This is the code in file called shop.jsp [CODE] <%@ page language = "java" contentType = "text/html" import = "ShoppingBasket, Product, java.sql.*" errorPage = "errorpage.jsp" %> <html> <head> <title>Welcome to Shop</title></head> <body> <table width = "385" … | |
I am creating buttons in a table programmatically and the click event has stopped working. I must have done something earlier in the page, as it used to work. Any suggestions as to where I might look would be much appreciated. The buttons are built into a table row, one … | |
I'm here at the IDF 2010 conference in San Francisco, and during this morning's keynote session, I had to the opportunity to see some pretty cool technology. One of the things that they demonstrated was essentially the next generation of handheld game controllers. Think of the Wii remotes, but with … | |
I am using a web page to input data into mysql using php. I am using ajax to pull back the same data from a php file on the same web page. I click my "get data" button (it runs my ajax/php function) right after I make an update to … | |
Hello to all, I did not know how to entitle this post,since it is more of a logical problem,but it's connected to the writing of my objects to a file. So, my server expects connections from multiple clients. The clients vote for the candidates offered to them by a menu, … | |
Hi I'm trying to develop a site that users can log into. It's all standard enough the details are being kept on a mysql database. I can add the details to the db but my code for logging in isn't working. here is my login script [CODE]function user_login($username, $password) { … | |
Hi Everyone In the interest of not hijacking someone else' troubleshooting thread, I'm starting a new one, but I don't know if anyone will be able to help me at this point. Here's the situation: I passed an older HP computer "sight unseen" on to a friend to let his … | |
here is the java script where i used window.close() function but it's not working. <script language="javascript"> var answer = confirm("Session expired! Want to go to the home page?") if (answer){ window.location = "index.jsp" } else{ window.close(); } | |
![]() | Hi Everybody, FYI (In order to get a feeling with the time it takes to send command strings to signal generators via a GPIB bus, I want to send a voltage level high pulse to an oscilloscope. Ones the RF signal arrives via a detector diode, The pulse and the … ![]() |
hi all ! In my web application for bus ticket booking i want to use session. Here i m describing the flow of my application briefly------------ (1) My first jsp page is index.jsp and after submiting this page it will go to servlet SenndBusInfo.java for processing. Here i am creating … | |
hi! How to get session object so that it can be used as Double. | |
Hi everyone hope you can help me with this issue, I'm trying to make a login system that is object oriented so I have the following classes: [INDENT] [LIST] [*]MySQLDB: Peforms all database operations, adding/removing members, checking passwords and usernames, also performing querys. [*]Session: Performs Session actions(log in/out, keeping track … | |
hi.. Is it ok to add more than 10 attributed on session object or it will slow down my application? | |
Howdy y'all, Got a question, why were here right, I have a page that is server side - no html included all php - I need to call/include a javascript function to handle a rather complex parsing routine but I am not sure how I go about calling the function … | |
Which datagrid should I use in vb.net? Which grid works like mshflexgrid? I have used mshflexgrid in my vb.net project as a result it shows error when I am trying to build my project! Please check my code & tell me which grid will support my code. Please add example … | |
[COLOR="Green"] I am using Lotus C++ API to create DLL's. I use VB6 and Lotus8.5.0 for programming. I am able to create EXE files & am able to execute and see the results. I then created a DLL,used that DLL successfully in LotusScript. But when I tried to use the … | |
Hi i'm doing some php i make login page where i check if user put right information i redirect him/her to index.php where session starts and other things occur.But when i put right username and password it not going to index.php else it coming back to login.php again. Here is … | |
HI, I am currently working on a project to develop a webpage using jsp. I need to include some css properties in the jsp file. But it doesnt work even though I am not getting any errors. My jsp code is [CODE] <% String captcha = (String) session.getAttribute("captcha"); String code … | |
hi, i get this error on one of my pages, however if i move the session start code to check if user is logged in down a few lines below some query code for searching the site it works fine. why would moving the session start down a bit on … | |
Hi there guys, I got this assignment where I need to set a session attribute. Although I'm having problems since I cant set attribute that is of type double? I got these hints but since I've worked with doubleValue() or downcasting, the hints didn't help me much.. Hints: -Recall that … | |
Running Vista on cox and Firefox. also have a wireless LAN with a IBM laptop running XP also on firefox. I get Server not found errors repeatedly on both computers. However, the frequency is random. The computer, either one, may error 10 or more times in a row, then not … | |
hello everybody, I'm new to jsp.I have to develope web portal for my company but i had problem with my login page. I hope that you can help this problem. Here is the code: <%@ page contentType="text/html" import="java.sql.*, java.util.Date, java.io.*" %> <%! String CheckLogin(String Login, String Password) throws Exception { … | |
Hi, I have a parent and child form, with the child form connected to the parent form by the parent_id. The forms are on different pages, and i am trying to pass the id of the parent form to the child form using session variables. What ive done (with no … | |
Hi, I have developed a site that allows users to post details for others to view. Within this I have built a secure login process that uses cookies to help the user around the site. However, when using sites like facebook, I notice that I receive emails with links that … | |
Hello DaniWeb, its Danny here :-) In my program I will open several web pages in IE or default browser. I already know how to do that. But I wuld REALLY like to be able to open a URL in an already open page. Like instead of always opening a … | |
Hey guys, wondering if you could help me with these two bits of code. What I'm trying to do is count how many clicks a link has been clicked, then when it has been clicked x amount of times, it echos 'test' Now the code below does that, but I've … | |
Hi all, I need a big help..I was struggling about 3 /more days with this code..It is not giving me the result I want.It is not that difficult thing.What I want is to display the values in database(name,description,image) according to the id selected. And then it can be edited if … | |
This will count number of page views in a session. Simple, to add on the page just add the code on the top of the page and make sure it is before any html. | |
Hey guys, can anyone point out where I'm going wrong with this? It counts the sessions fine, but the IF statement doesn't seem to be working as it should. [CODE] <?php session_start(); ($_SESSION['count']) ? $_SESSION['count']++ : $_SESSION['count'] = 1; if (!(count) % 5) { echo "test"; } ?> <!DOCTYPE HTML … | |
I made this page and keep on getting error on the same page and webconfig file..... Errors Error 1 'Culture' is not a member of 'ASP.emergency_plan_error_aspx'. Error 2 'UICulture' is not a member of 'ASP.emergency_plan_error_aspx'. Error 3 'InitializeCulture'is not a member of 'ASP.emergency_plan_error_aspx'. Error 4 'CreateResourceBasedLiteralControl'is nt a member of'ASP.emergency_plan_error_aspx'. … | |
Alright so I want to force a new session but I'm not even sure how to use the code I was given to do just that. I have 2 web browser controls in one app that need 2 different sessions. Can this code do what I need it to? If … |
The End.