4,124 Topics
![]() | |
I am a newbie and am at a loss on how to clear field of a form. My current form is the tradition form that check to see if it has been submitted. After it has, validation of each field is performed and if all is ok a record is … | |
I am facing a problem on setting up some cookies with asp on IE6 and IE7 I need to set following cookies when user logs in to his account. Response.Cookies("crmadmin_login_id") = session("login_id") Response.Cookies("crmadmin_cuser_id") = rsbrokercrm("cuser_id") crmuserlevel = cint(rsbrokercrm("cuser_level")) Response.Cookies("crmadmin_level") = crmuserlevel Response.Cookies("cid") = rsbrokercrm("c_id") Response.Cookies("company_name") = rsbrokercrm("Company_Name") When I comment … | |
I have a project I am near completing except I cannot properly test it because the array uses sessions and is full of useless data now. I have an HTML entry form that feeds data to this PHP script: [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <title>Directory</title> … | |
Can anyone tell me if I am going in the wright direction with this, or if there is a better way, I am trying to create a session check so that if logged in clients change the url id number example.com?id=192 it won't show other clients contents. Its the first … | |
Hi Guys, I am doing a web based jsp project. Here we primarily read an image and store it to a relative folder.This image is then called in a jsp page. The previous image is loaded instead of the recent one. I need help from you guys regarding this, So … | |
[B]hi all using telnetlib, I am issuing a 'top' command on a remote host. Top seems to continue indefinitely. On a terminal, I can use CTRL+c to suspend the process... What can be passed in telnet.write() equivalently to suspend the process , yet retain the output so far... pls help … | |
how to store the output of a telnet session on a local machine, so that it can be used further for calculations?? | |
I have a project that I am working on where subscribers will receive an update via email containing links to notices. These notices can only be viewed by registered members, so in order to do that I have a login page and script. I am using [CODE]$ticket = clean($_GET['ticket']);[/CODE] to … | |
[B]hi all.... i m writting a script using telnet session in linux............ first i want to read 1)read free message 2)process memory usage 3)%cpu usage then using snmpwalk i want to repeat 1,2,3 after doing this i want to calculate difference before snmp walk and after snmp walk....... i m … | |
[B]hi, my problem is as such... I am establishing a telnet session to an IP using telnetlib module. I read the free memory on the board using telnet.write("free\n"). after this i call a system command 'snmpwalk' to walk the MIBs of the IP above. I again need to establish the … | |
Ok I'm having a problem with this code. The problem occures when I set the POST request and alert me with 411 error. Without this two lines [CODE]curl_setopt($session,CURLOPT_POST,true); curl_setopt($session,CURLOPT_POSTFIELDS,$xml)[/CODE]this code output nice xml which shows all the info in my spreadsheet. With this two lines we should put in the … | |
Hi everyone, I am new to PHP and need help in making my script be able upload multiple images simultaneously. I need a large image and a thumb for each. I got this script from the web and made a few changes. I would really appreciate any help. The forms … | |
Hi, In my application, I am using authentication mode as form and cookieless as UseDeviceProfile. i set in sessionstate cookieless as UseDeviceProfile and timeout="60" in global.asax ,Application_AcquireRequestState method i used to redirect to timeouterror page. if i run my application first time it redirects to timeouterrorpage.but it should go to … | |
Hi Guys, I am having trouble with my links, i am currently trying to use my $_SESSION['SESS_MEMBER_ID']; to automatically link it directly to the specific user page. However I always have this error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\ThesisDB\DisplayThisUser.php on line 21 [CODE] … | |
Env : Php 5.3, Ubuntu 10.10, apache 2.2.16 In fact IE8 blocks cookies avoiding the php session cookies to be saved in the client environment. Configure ssl on your webserver an do a http redirect at the very top of your source script from http to https layer. | |
This should be an easy one but I am missing something and have been working on this for two days now. I am trying to insert a date/time in a short date format (date/time mm/dd/yyyy) into an access database and I get the "Data type mismatch in criteria expression" every … | |
My file layout is as follows: Index.php: (URL = domain/index.php) [code] <?php session_start(); ?> <!-- BUNCH OF HTML --> <?php if($_GET['page'] == 'portfolio') include('pages/portfolio.php'); ?> <!-- BUNCH OF HTML --> [/code] Portfolio.php: (URL = domain/index.php?page=portfolio) [code] session_start(); if($_GET['view'] == 0){ // URL would be domain/index.php?page=portfolio&view=0 $_SESSION['catImages'] = array(); $_SESSION['catImages'][0] = … | |
Hi All: I have 2 php files feeding one MySql record. I have an INSERT query in file1.php working fine, it then sends me to a highly animated form file2.php that calls a processor.php file. The processor.php file needs to update the mySql record. I have [U]tested[/U] the processor file … | |
1. i cant login my login page while i use the encrypted password using md5(). 2. session is not working in my pages. 3. logout button is not working. Main_Login.php --------------- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Expires" content="Wed, … | |
Here is my problem. I have a site into which users can login. It has a logout button to let the user log out. My problem is when they close the browser without logging out, how can I close the logged in entry in the database?? I need a way … ![]() | |
Hello every1, i'm building a site that requires logging in before accessing other pages(like facebook or any mail system). At first(in index) i create an object of my sessions class, say $session. The constructor of sessions class calls session_start() php function. $session checks if user logged in or not(maybe he … ![]() | |
see this code [CODE]<?php $username = $_POST['username']; $password = $_POST['password']; if (isset($username,$password)) { $connect = mysql_connect ("localhost","root",""); mysql_select_db("phplogin"); $query = mysql_query("SELECT * FROM `users` WHERE username ='$username' and password='$password'"); $numrows=mysql_num_rows($query); if ($numrows!=0) { while($row = mysql_fetch_assoc($query)) { $dbusername = $row ['username']; $dbpassword = $row ['password']; } if ($dbusername=='username'&&$dbpassword=='password') { echo … ![]() | |
[CODE]import java.io.*; import java.text.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class getname extends HttpServlet { public void init(ServletConfig config) throws ServletException { super.init(config); } public void destroy() { } public void doPost(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException { String name = null; PrintWriter out = response.getWriter(); if(request.getParameter("txtname") != null) … | |
Hi Guys I am really stuck and cant think for the heck is wrong with this. I have a basic login jsp page that gets a username and password from a page and then sends them to a login Authentication jsp script, i use [code]<sql:query var="dbData" > SELECT * FROM … | |
what php code should i add if i need the custno[id no] to be included when i submit the log-in button? this code runs, but i really need the code for the custno to be included. start.php [CODE]<?php session_start(); session_destroy(); ?> <html > <head> <title>Login Form </title> <meta http-equiv="Content-Type" content="text/html; … | |
1. I am having a real struggle trying to accomplish something for work. I have a starting page with a textbox and a button. I want to be able to post the value entered in the textbox to an iframe, but the iframe is on another another web page called … | |
Hi While learning how to create and manage a session, I got through session time out technique, I got throw 2 ways : 1. Setting up garpage collection directive in php.ini file and 2. Create a session variable named, say, EXPIRE that holds the value [code]$_SESSION['EXPIRES']=time()+360;[/code] at the beginning of … | |
Hi everybody! Please help me very fast!!!! I am programming with php in linux platform. When I create a file (example index.php) , that is UTF8 as default. Now I want to set cookie or session , but I cannot! I get an error about sending headers! Please help me … ![]() | |
hi all, i am new to asp and i have a problem in editing the data...here is the code can someone please help... [ICODE]protected void Page_Load(object sender, EventArgs e) { if (Session["admin"] == null) { Response.Redirect("Default.aspx?msg=1"); } if (Request.QueryString["id"] != null) { SqlConnection conn = new SqlConnection(); conn.ConnectionString = helper.ConnectionString; … | |
Hi could someone tell me how to write a EJB module in NetBeans IDE/ MyEclipse. i am using NetBeans 6.9.1. not able to figure out what type of project to select from the choices? i am trying to write a Remote interface, a Home interface, Session Bean, ejb-jar and a … | |
Hi all, I am having a little problem with displaying results from a search html form which forwards onto a servlet for processing, then the results are displayed in a jsp web page. The html form contains a [CODE]<select>[/CODE] for a drop down list to select what term to search … | |
Hi, I'm trying to write a script that allows me to insert a file into MySql. I would like it to work under the user's session. I am getting error:(You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right … | |
Hi all. I have an assignment i'm working on but I am getting some errors now. The page it is coming from is a login page. The customer has signed up and now i want them to login and store their data in a session. heres the errors Warning: Cannot … | |
Hi. my code works perfectly in Chrome but in IE when i go between pages my session is lost. does anybody know why? | |
[code]Write an application namedCollegeList that declares an array of four "regular" CollegeEmployees, three Falulty, and seven Students. Prompt the user to specify which type of person's data will be entered('C'F'S') or allow user to quit('Q') . While user chooses to continue accept data entry for approate type of Person. If … | |
i need to send the xml data to [url]http://developer.uidai.gov.in/auth/demoapp/9/9[/url] server but i got 510 as the error code can any one help me what is the problem i am using curl Api cpp function call has made like follows [CODE] int main() { HTTPClient* object=new HTTPClient(); object->SetUrl("http://developer.uidai.gov.in/auth/demoapp/9/9"); o->GetUrl(); o->AddEncodedPostField("input","test1.txt" ); … | |
Hi everybody. Am new here and new using PHP as well. Hope you could help me. I encountered this error Error when deleting: Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables … | |
Hi all, I am trying to send email using a java class and gmail mail server given below is the code for this but its not working UnknownHostException found.I have replaced all the email addresses with actual email addresses. [CODE] import javax.mail.*; import javax.mail.internet.*; import java.util.*; public class Mail { … | |
It's been many, many years since I have written any ASP code and I dont recall this functionality being present in the past BUT: In php we have a serialize() that takes an array of data and creats a single string representation of that data. The single string can then … | |
I'm trying to get Android to run on a VM using VirtualBox, but every time I go to start the VM I get an error message that says: Failed to open a session for the virtual machine A virtual device is configured in the VM settings but the device implementation … | |
HI, I am using Ajax,Jquery in my web application, the problem i am facing is, when i kept my page idle till the session expires and then if I click on any buttons above javascript exception is coming and page freezs with out doing any functionality such as OnselectedIndexChanged of … | |
i'm creating a e-cart. i have a problem to update cart. I want to use session array to create cart, but i don't know how to do it. can some help me to create SESSION ARRAY which can add several data. $_SESSION['ecart'] = $details; how to add several data for … | |
I know this is a long one but I've been trying to work around the coding for days, any help will be of great help. ______________________________________________________________________________________ [B] I have a bit of a problem, I have three pages: student_login.htm(to take in id and pwd),loginstdck.php(to check if the values match with … | |
Please advise me on any good performance monitoring softwares for Oracle Database. Budget is no issue. I want to find and fix performance bottlenecks in Oracle Database (Oracle 9i Rel2), as well as generate graphs on statistics collected over a period of time. At present I am evaluating: 1) Spotlight® … | |
Hi, I've built a login box that uses ajax to verify a user's account. If something is wrong (ie. password and username don't match) it spits an error message out underneath the password field. I have two questions: 1. How can I get the box to resize automatically to fit … | |
hi guys, i have confusion about comparing dates in php. i want to compare birth date with current date. here is my code. i hope u will me to solved out this problem. thanks [CODE] <?php //code for get values from session session_start(); if(isset($_SESSION['I'])){ //this code will get email id … | |
Hi I need to force a logoff for idle users through a gpo, after 2 or 3 hours of inactivity. The suggested solution in every previous thread is using a screensaver that does the trick. That's not good for me, because I need the screen saver to run after 15 … | |
Hello people! I would like to know how to remove white space and replace them with a "_" on the file uploaded by this script. [CODE]<?php // Check if a file has been uploaded if(isset($_FILES['uploaded_file'])) { // Make sure the file was sent without errors if($_FILES['uploaded_file']['error'] == 0) { // … ![]() | |
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to … | |
hi for all i have two stored procedure to retrive data from data base one before one week and the other before two week [CODE]ALTER PROCEDURE beforeweek AS select * from files where [date] < dateadd(wk,-1,getdate()) [/CODE] and the other [CODE]ALTER PROCEDURE beforeweek AS select * from files where [date] … |
The End.