4,124 Topics

Member Avatar for
Member Avatar for phplover

Hi, I have basically created two functions in a filed called functions.php . They are as follows: [CODE] # Form Token Hash Generator (must be declared after if statement) function GenerateFormTokenHash(){ $token = $_SESSION['token'] = md5(uniqid(mt_rand(), true)) ; return $token; } # Form Token Hash Validator function IsValidFormTokenHash(){ return $_POST['token'] …

Member Avatar for phplover
0
226
Member Avatar for SKANK!!!!!

now i know that there is a thing that "you cant stay logged inforever" but isnt there some sort of ultra cookie that doesnt get cleared when a user is clearing their cookies from their browsers? and when someone logs out of my site, i set the session to expired. …

Member Avatar for Excizted
0
982
Member Avatar for sakhi kul

Hi , can anybody tell me any valid link to download Ldap libraries for c# I am trying many links but It takes much time to respond and error occured as session timed out.

Member Avatar for Lusiphur
0
79
Member Avatar for tickedoff

Hi can anyone solve a very annoying problem for me I have brought my first laptop and when I using it at random the computer opens a blank internet page (nothing but white) it happens even when I'm not using the internet the only way to get rid of it …

Member Avatar for jholland1964
0
87
Member Avatar for cafekko

On this project. I used XML as a database and AJAX for display.. I integrated this website [B]Here's the full source code.. please scan it for your safety.[/B] [url]http://www.mediafire.com/?nh14oi1mmeo[/url] First, radiobuttons is assigned before page init.. [code] public partial class Default : System.Web.UI.Page { //Assign values as a specific Dynamic …

Member Avatar for Lusiphur
0
231
Member Avatar for Towlie

I want to be able to access whatever the user types into my testCreation.html in a session created in testCheck.php. I then want that session to be accessed by testView.php. I can't seem to get to that point so any help is grealy appreciated. testCreation.html: [code=javascript] <html xmlns="http://www.w3.org/1999/xhtml" > <head …

Member Avatar for edup_pt
0
143
Member Avatar for sugikrish

Hi Frnds, I created session for index page. I passed session variable to next page like "about us" page. But in index page it displayed some errors. Notice: Undefined index: myusername in C:\wamp\www\fc2\index.php on line 136 Notice: Undefined index: mypassword in C:\wamp\www\fc2\index.php on line 137 Line 136 : $myusername=$_POST['myusername']; Line …

Member Avatar for rajarajan2017
0
58
Member Avatar for hasbeenbad

I have a web app that creates an employee.txt file, how do I go about printing the contents of the file from a form? [CODE]<%-- confirmation.jsp --%> <%@ page session="false" import="java.util.*" %> <%@page import="java.io.InputStreamReader"%> <%@page import="java.io.BufferedReader"%> <%@page import="java.io.DataInputStream"%> <%@page import="java.io.FileInputStream"%> <%--Retrieve the Employee and Hiring beans from the Request scope--%> …

Member Avatar for NormR1
0
135
Member Avatar for Srinivasa007

Hi All, Good Morning. I'm new to php environment. When you are in internet explorer and you register, if you choose a different address to send the commission checks to, it always says "Choose a state" even though you chose one already. Here is the code. <?php session_start(); include_once( "common.php" …

Member Avatar for chrishea
-2
106
Member Avatar for Weppies

Hi I need to know how to keep data in a gridview after postback. I am using sqlDataAdapter with DataSet to fill the gridview. But if you want to go to the second page of the gridview list it loses the data. Would it be best to create a Session …

Member Avatar for Weppies
0
366
Member Avatar for hirenpatel53

hello all i have one master page containing menu strip and one content page of same master page what i want while i click on the menu strip the value clicked is shown to to text box on form for that i am using following code master page's code [CODE] …

Member Avatar for hirenpatel53
0
127
Member Avatar for php_IND
Member Avatar for parkie

Hi, can anyone give me a bit of advise? Ok this code works and sends a result if it is higher than 99% to an email address. What I now need to do is limit the number of times a person can access the quiz if they don't score 99% …

Member Avatar for parkie
0
108
Member Avatar for mattitude

So far today has been one of those days where I can't get anything to work. For the past three hours, I have been trying to require tmail library, and trying to connect to my mail server with imap. Here is a brief session illustrating my frustration. [CODE]irb(main):001:0> require 'net/smtp' …

Member Avatar for tiger86
0
295
Member Avatar for krishnamurtrhy

Im receiving the above msg even after using MultipleActiveResultSets=True to connection string public partial class registration : System.Web.UI.UserControl { string gender; SqlCommand cmd = null; SqlConnection con = null; protected void Page_Load(object sender, EventArgs e) { con = new SqlConnection("Server=.; database=nkm; user id=sa; pwd=karthavya"); con.Open(); cmd = new SqlCommand(); cmd.Connection …

Member Avatar for Lusiphur
0
476
Member Avatar for krishnamurtrhy

Really Im getting very much confustion. I searched in net to get solution for the following msg. There is already an open DataReader associated with this Command which must be closed first. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace …

Member Avatar for Lusiphur
0
212
Member Avatar for prashanth s j

Hi all, From within python script, I created a ssh handler to a remote machine whose interface is down and then using the ssh handler, I executed on the remote machine the following command: service network restart But the remote ssh session breaks and the service network restart is not …

Member Avatar for ultimatebuster
0
71
Member Avatar for msamir

I want to craete session object in my application .please tell me how to create and use session object.

Member Avatar for krishnamurtrhy
0
126
Member Avatar for virendrachandak

Hi, I am using the following code to send email using JSP through gmail. But i am getting error in the following line: Session mailSession = Session.getDefaultInstance(props, null); [code] String host="", user="", pass=""; host = smtp_server; //"smtp.gmail.com"; user = jsp_email; //"YourEmailId@gmail.com" // email id to send the emails pass = …

Member Avatar for eswaramoorthy
0
358
Member Avatar for hery

hello all, i want to ask how to i set variable in asp:sqldatasource in sqlcommand in asp.net c#.... This is my code asp.net [code] <dx:ASPxListBox ID="lsAssignToko" runat="server" DataSourceID="SqlDataSource6" TextField="NAMA" ValueField="ID" AutoPostBack="true" EnableCallbackMode="True" SelectionMode="CheckColumn" onselectedIndexChanged="lsAssignToko_SelectedIndexChanged"> <Columns> <dx:ListBoxColumn FieldName="ID"/> <dx:ListBoxColumn FieldName="NAMA" /> </Columns> </dx:ASPxListBox> <asp:SqlDataSource ID="SqlDataSource6" runat="server" ConnectionString="<%$ ConnectionStrings:Ora2010 %>" ProviderName="<%$ ConnectionStrings:Ora2010.ProviderName …

Member Avatar for Lusiphur
0
753
Member Avatar for Manny7

Hi, i want to ask for the question in the subject this post. Well -- what way is for you the best and why? I think right now, if is better the shopping cart make with support SESSION or after add the item to the cart this item save into …

Member Avatar for keval_hack
0
124
Member Avatar for patto78

Hi, I've just paid £10 for a book on the internet with the sole intention of solving one problem, unfortunately 2.5 hours later I am no further forward, despite the fact that the book suggests just a single line of code can achieve my aim. Maybe someone here can help. …

Member Avatar for patto78
0
212
Member Avatar for Rick The Mad

Hi, I am creating a web application that will be accessed by several different users who need to be coupled and to interact. More specifically, I would like to let both of them call the same servlet instance and make the servlet start his operations only when both users already …

Member Avatar for ~s.o.s~
0
89
Member Avatar for amer.m

i'm making a web application based on jsp i wan't a code that when a button clicked, take value from textbox and insert its value into mysql database pool maybe the sql stmt only isn't right my code is: [CODE]<form id="form1" name="form1" method="post" action="http://localhost:8080/servlet/mailservlet"> <p>&nbsp;</p> <table width="100%" border="0" cellspacing="0" cellpadding="0"> …

Member Avatar for peter_budo
0
142
Member Avatar for maria_mj

I want to retrieve session value(username) from the login page. I have to verify the user by their username to make the access right control for certain page. In my application, i want to control the access right to "ViewAllProject.aspx" page. I have save the username in session in login …

Member Avatar for maria_mj
0
235
Member Avatar for tokenjoker187

I am trying to use the session start function but everytime I try to use it, it gives 2 errors: [QUOTE] Cannot send session cookie - headers already sent by (output started at /var/www/form/send.php:11) in /var/www/form/send.php on line 12[/QUOTE] [QUOTE]Cannot send session cache limiter - headers already sent (output started …

Member Avatar for tokenjoker187
0
186
Member Avatar for starlight22

My membership script works fine, except I can't login, because this check.php script doesn't work. Login form action is check.php. Once I login with username and password, check.php gives me an error message "Please enter ALL of the information". The only information on login form is username and password. The …

Member Avatar for rajarajan2017
0
122
Member Avatar for MichaelWClark

I have been fighting with this code for 3 days. I got everything to work....except its a bit glitchy as of right now and I can't figure out why. I am sure it is simple. They basic concept is something like this: OFFICE [txtbox] [txtbox] [txtbox] [label] +add row BUSINESS …

Member Avatar for MichaelWClark
0
107
Member Avatar for levsha

Could somebody please direct me? Why the code is not working? Let's say I have two scripts: mypage.php and mypage2.php. mypage.php: [CODE]<?php // this starts the session session_start(); // this sets variables in the session $_SESSION['color']='red'; $_SESSION['size']='small'; $_SESSION['shape']='round'; print "Done"; ?>[/CODE] Works as expected, outputs "Done". mypage2.php: [CODE]<?php // this …

Member Avatar for Grantism
0
207
Member Avatar for virendrachandak

Hi, I need help with JSP session. My problem: I have a login page. When a user logs in then, i set a session and its expiration time. So, when the session is expired, the user will be redirected to the login page with a session expired message. I want …

0
85
Member Avatar for smi ensi

hi! I have prbleme is that how can apache recieve email and how I can add session it mean that the person can not add or delete or do any evenement before he login . [CODE] <?PHP session_start(); include("connexion.php"); if (isset($_POST['login'])and isset($_POST['password'])) { extract($_POST); if (empty($login) or empty($password)) { echo …

Member Avatar for smi ensi
0
124
Member Avatar for maluvel

Hi all, I am a java programmer and this is the first time I movw to asp .net. However, there is some points i couldnt find out and hopefully i can have some help from you guys. I have form with is very long so i need to devided it …

Member Avatar for kad1r
0
101
Member Avatar for dan_t

Hello everyone, I'm having a little trouble here. I'm trying to use a session created from log in(the user id) and take that user id and pull out information from the data base. An example would be: (this is not the actual code, but I will wrap it anyway) [CODE] …

Member Avatar for rajarajan2017
0
113
Member Avatar for fankoff

How could I like programming ? When you spend 2 days on one single, pointless line and the only thing you get to see is an ERROR-response. It`s really inhuman and I cant imagine who would want this voluntarily. Nevertheless, what am I yammering about is following error, that is …

Member Avatar for bapi
0
106
Member Avatar for vishant

Hi everyone, I am doing a project for school and i'm having some problems. I have a Profile page. When i call on Profile.java, this servlets get(doGet) the profile info from the database and shows it on the profile.jsp. The user has the option to edit the info on the …

0
72
Member Avatar for MichaelWClark

I am working on a project that I want to "+Add Row" to. This will Add a row of four fields that are textboxes. The # of rows is variable so I created a literal control and have been doing [code] Protected Sub btnAddRow_Click(ByVal sender As Object, ByVal e As …

Member Avatar for MichaelWClark
0
300
Member Avatar for cheinan

I have a multiple web sits asp.net application. In this application different domains using the same pages. All pages inherit from base class named: PageBase wich inherit from System.Web.UI.Page. By using: HttpContext.Current.Request.ServerVariables["HTTP_HOST"] i cen determine what is the domain and then get all the info i need for this domain …

0
45
Member Avatar for maximusimo

Hi there, Small Business Server 2003 Service Pack 2. From the server and within 'Server Management > Client Computers' when I click on a computer name and choose 'Offer Remote Assistance' I get the following error: [I][B]Help and Support Error Windows cannot open Help and Support because a system service …

0
65
Member Avatar for Learning78

[QUOTE]Hi; I have developed a MCQ based learning game. A user has to play the game repeatedly to improve his learning. For each session of game, player gets score. I want to write the score in a single file for every session. e.g. I want to print user name and …

Member Avatar for Legjendat
0
1K
Member Avatar for sastudent

The code below is my insert statement to get values into my database. However, I now have an update page where users can update their information. I thus have a form in which their initial info is inserted and now they can change it and submit again thereby updating the …

Member Avatar for sastudent
0
127
Member Avatar for MichaelWClark

I am converting a xls to web form. THere are 4 fields and XX # of lines per form entry. Since the number of lines are variable I want to have an "+Add Line" Button to add a line of txt boxes to the form. I have gotten it to …

Member Avatar for MichaelWClark
0
104
Member Avatar for red_ruewei

Hi, I having problem to fix this problem. Already search for related thread, but cannot find a solution. The case is like this. I have 2 system that intergrate each other. Let assume as system A and B. User need to login from system A and can use system B …

Member Avatar for Manuz
0
131
Member Avatar for sara khan

I m making a website in which I hav an admin and members .. I want to define rights of users who can access a certain page.. For this purpose I m using an array of String along with a Session object. I m storing URLs of pages which a …

Member Avatar for sara khan
0
230
Member Avatar for greatunknown

To get to the brunt of it, I have a link list on the left sidebar of my site, each link is just a recordset table value and I used a repeating region to repeat down. Therefore the list of links is essentially a list of recordset table values from …

Member Avatar for blackhole
0
92
Member Avatar for tulipputih

Hello everyone, I used session and the id of the selected checkbox are passed to another page currently. now I do another query based on the ID of the selected checkbox. I want to display the fields from the selected result in columns like this [url]http://www.bluenile.co.uk/diamond_co...OMPARISON_STEP[/url] I did this [CODE] …

Member Avatar for tulipputih
0
126
Member Avatar for vibhaJ

This problem is on AWS linux instance,in local its working perfact. Here is my flow: this file is:test.php [CODE] require_once('system/config.php'); $_SESSION['name']='test'; echo 'session -name- is:'.$_SESSION['name']; exit; [/CODE] Expected Output: session -name- is:test (its coming.OK) here i have set session value to test. so in page session is now live and …

Member Avatar for vibhaJ
0
152
Member Avatar for maria_mj

i have deploy my .Net web application. i can retrieve the first page that is the login.aspx page. but, when i click the login button, the error has occur. Execute Reader: Connection property has not been initialized. After user click login button from the login page, menu page should be …

Member Avatar for maria_mj
0
960
Member Avatar for Trekker182

Hello everyone, I'm in the process of learning php in a class and had a quick question for one of my assignments. I am uploading a file to a server which the user can name the directory. However, after they upload the file, I have to give them the option …

Member Avatar for chrishea
0
92
Member Avatar for Techwriter10

I spent the better part of this week at the[URL="http://www.e2conf.com/"] Enterprise 2.0 Conference[/URL] in Boston where I saw an excellent presentation called "The Dark Side of Enterprise 2.0." During this session, Kathleen Culver of Alactel-Lucent suggested that one of the big negatives of Enterprise 2.0 and by extension, social media …

0
609
Member Avatar for manojd

fellow developers...i am new to web development...I am developing a simple web application using Oracle for Weblogic Workshop with Weblogic 10Gr3 server. However my deployment server is weblogic 7.1. When i deploy and run the app, i get the following error Parsing of JSP File '/index.jsp' failed /index.jsp(6): class 'xxx.xxx.xxxx' …

Member Avatar for Thirusha
0
309

The End.