4,124 Topics
![]() | |
I followed a tutorial on [url]http://www.phpeasystep.com/workshopview.php?id=6[/url] and I think it's not working properly for me. When I try to start the session in my sidebar thing it won't actually start somehow :S [code]<div id="sidebar"> <h2>[<a href="?page=home">Samppa's page</a>]</h2> <h3> Main menu</h3> <ul class="menu"> <li><a href="?page=about"> >> About</a></li> <li><a href="?page=projects"> >> Projects</a></li> <li><a … | |
Hi all, I am having trouble with including a jsp page with <jsp:include> tag. This is what is happening. I making changes to a portlet application running on Websphere 7 server. This is the hierarchy of the jsp pages. blankPage.jsp -->bookingViewTabs.jsp --> availableRooms.jsp meaning blankPage is included in bookingViewTabs which … | |
hi i am trying to insert into mysql databse using jsp.but i am getting the error as [CODE]An error occured between lines: 38 and 47 in the jsp file: /jsp/havyaka/register.jsp Generated servlet error: C:\tomcat\work\localhost\examples\jsp\havyaka\register$jsp.java:102: Incompatible type for declaration. Can't convert int to java.sql.ResultSet. ResultSet rs = statement.executeUpdate("insert into havyak(usercode,password,email,name,phone,add1,add2,add3,add4,country) values('" … | |
![]() | Hey guys im struggling to pass a session in php, i cant quite figure out why though. My friend used the exact same code as me but it doesnt want to work. This code is the database checker (which seems to work) maybe im over looking some thing?? [CODE]<?php session_start(); … ![]() |
<?php include 'session.inc'; check_login(); $con=mysql_connect("localhost","root",""); if(!$con) die('Could not connect:' .mysql_error()); mysql_select_db("vms", $con); if($_POST[product]!='NONE') { $product=$_POST[product]; } else { $product='NONE'; } $expire=time()+60*60; setcookie("product",$product,$expire); if(product!='NONE') { // how many rows to show per page $rowsPerPage = 20; // by default we show first page $pageNum = 1; // if $_POST['page'] defined, use … | |
My project is e learning project. I've a "choose the correct answer" module. When the click the "begin test" button it should fetch the questions and options from database and display it. Instead of that my page displays "java.lang.NullPointerException". I've assigned unique values for each error. So the exact error … | |
Hi, Could anyone please help a n00b girl on this one? Thx:) [php] <?php session_start(); //allows session include('config.php'); if($admin == 6) { echo "Admin"; } ?> include "includes/header_account.php"; if($logged[id]) { //welcomes the member <div id="mainContent"> <div id="profile" class="clearfix"> <div id="col-left"> <div class="profile-section"> <a href='editprofile.php' class="manage">Uredi svoj Profil</a> <h2>echo "Živjo $logged[username]</h2>"; … ![]() | |
Hi, I have a website on NET 2.0, there I have a textbox and after I change the text on it with a js function, try to save on the DB (I have to click on a imagebutton to save it), but on the postback the textbox.text property has the … | |
where do i place this code.im confused? [CODE] <!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=iso-8859-1" /> <LINK href="special.css" rel="stylesheet" type="text/css"> <title>User Info</title> <STYLE type="text/css"> .htmlForm td{ font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#CC3300; border-bottom:1px #EAE3C8 solid; } .htmlForm input,select{ border:1px #BDB597 solid; font-family:tahoma; … | |
Hi, im making a application and am stuck :) the page has 3 radio buttons, if the user has selected one i want the page to go to page2.aspx if the user hasnt selected one i want an error message to be displayed (lblErr) and no navigation to happen. im … | |
How can I perserve the session state of a SharePoint browser state using javascript? | |
I'm a complete programming novice, so apologies in advance ;) I'm trying to design a simple app to take user input from a textbox (in this case, Outlook EntryID - a hexadecimal string) and use Redemption.DLL to return a set of MAPI properties from the container. The button and general … | |
Hi, I have a scenario for which I wanted the best solution in asp.net c#. My web application allows users to retrieve search data from database, this data is the users own temporary list of records which they can search, delete records or select them. All these actions are only … | |
ASP.NET, C# I dynamically generate few textboxes. When click on a submit, the page refresh itself. It hides a Panel with those textboxes and shows another Panel. In that panel I need to get texts from the textboxes in the previous Panel. I saved generated textboxes to Session and retrieve … | |
Hi Friends, I am use asp.net with C#.net as code behind file... I put asp Dropdown list box to my aspx page.. when at run i select item from Dropdown list box and refresh or post back this aspx.the value of Dropdown become first...How i get previous value...I want dropdown … | |
I want to send email using JSP. I did this for that, 1. Downloaded and Installed Java and Tomcat on My PC. 2. Used the following script, [CODE]<html> <head> <title>JSP JavaMail Example </title> </head> <body> <%@ page import="java.util.*" %> <%@ page import="javax.mail.*" %> <%@ page import="javax.mail.internet.*" %> <%@ page import="javax.activation.*" … | |
Hi all, I have been doing some reading into security with PHP session data and I have changed a few things around in my script - For example - I am now using $securecode=sha1(uniqid(rand())); as before I was using $securecode=md5(uniqid(rand())); As reading through daniweb has taught me that sha1 is … ![]() | |
I'm testing to get my python script to still run if the smtp server it uses went down. I have a local mail server im testing this with. The issue is when testing it, i get a large spew of text. It checks all its libraries and such, untill its … | |
I'VE A PROJECT AND I'M JUST START LEARNING JAVA SO I NEED HELP . HOW SHOULD I START WITH THIS PROJECT ............????? Design and code a Java application to store and manage the rates of some currencies of interest and to perform conversions between them. The application should have a … | |
Hai, I am using MySQL table to store session values. i am getting sid as 'deleted' for some sessions in live server . but i am not able to simulate it in development server . what scenario it will occur. sample data. +---------+-------+-------------+ | sid | value | expire_time | … | |
I didn't know where to put this, so I'm putting it here and if any mod wants to move it them be my guest. I want to write my own ftp console application that would interpret the info and display it in a command-prompt like window. The only thing that … | |
hi all, i had a logout page wer i am destroying the session value. so now i am logging out from a page and if i click browser back button it is going back to that page, so i placed a code in that page[CODE]<?php if(!isset($_SESSION['username'])) header("Location:http://10.70.2.142/Project/login.php"); ob_end_flush(); ?>[/CODE] it … | |
Alright, let's try this again. I've started over from scratch and we have got the basic functions working. Everything so far has checked out, but I am still trying to get it to pull the right credentials. I can get it to pull one of the rows out of the … | |
Hey, I need help with setting up an authentication code. I am currently working on a project to build a blog server in python for an intro level python course. We are using the PESTO and POSTGRESQL wsgi and sql clients respectively. I am trying to authenticate against a user … | |
Hi, I just started a free trial with a new webhost as my current one is useless. I have always had my website working on the old webhost fine. I have a folder called sessions outside the public_html folder so it cannot be accessed in a browser and not accessed … | |
[CODE] #include<stdio.h> #include<string.h> #include<arpa/inet.h> #include<netdb.h> #include<sys/types.h> #include<sys/socket.h> #include<fcntl.h> #include<sys/stat.h> #include<stdlib.h> #include<time.h> int main() { FILE *logs; logs = fopen("/home/aniroot/logs/log.txt","a"); if(logs = NULL) { printf("fopen failed ... There would be no log for this session!!!"); } int sockfd,newfd; int err; struct addrinfo *res,*p,hints; struct sockaddr_storage their_addr; socklen_t addr_size; int yes=1; char … | |
Safari browser will not accept my cookie it is ignoring it? have I done something wrong with how the cookie is presented for safari??? The cookie I try to set: setcookie('peg', 'YES', 'time()+190', '', 0); Also all browsers are starting my phpsession off when its not even declared until after … | |
Hello All, I am trying to add a clean up code to the global.asax file, when I initially added the code it worked but now its throwing a compilation error for the same. Below is the code which I need to add, I have taken it from Microsoft's website and … | |
I have tried to use session to track/ say 'Hello' to the user who is online. However, I'm very new to use this object and actually, I'm still not clear all about the global.asa file. I mean we write all methods about sessions we'll in it , then call it … | |
I'm very new to php and am trying to fix code that was previously working. Initially, i was getting an undefined error and changed code from: [code] function printChapter($committee){ echo "<table width=\"99%\" border=\"0\" cellspacing=\"10\">\n"; foreach($committee as $name => $c){ $alt = $name; $names = explode(" ", $name); $fname = $names[0]; … | |
Ok so I have a login page which actually gets an employees ID and password and includes the employee id and surname+firstname in a session. Now in the following page: [code] <?php require_once("nocache.php"); session_start(); if (!$_SESSION["who"]) { header("location: logoff.php"); } else { $emp = $_SESSION["who"]; $sn=$_SESSION["surname"]; $fn=$_SESSION["firstname"]; } require_once("dbconn.php"); $sql="SELECT … | |
I m implementing a storage virtualization system over Storage Area Network(SAN). Now I have to develop an application using ASP.NET.first task is to [B]open an FTP page in an HTTP page[/B] which will enable me to work on files and folders using HTTP. FTP server configurations have been done. in … | |
how do you measure the size of session in (KB, MB....) how can you say my session object is consuming ? space in (Kb & MB) is there any limit to session size ( Some guy said 2GB :) ) Adapost help..! | |
in global.asax: i given this code [code] public static int count = 0; void Application_Start(object sender, EventArgs e) { // Code that runs on application startup Application["myCount"] = count; } void Session_Start(object sender, EventArgs e) { // Code that runs when a new session is started //count = Convert.ToInt32(Application["myCount"]); count … | |
[code]<%@ page language="java" import="java.util.Properties,javax.mail.*,javax.mail.internet.InternetAddress,javax.mail.internet.MimeMessage" %> <% public class SendAttachment { public static void main(String args[]) throws Exception { String host = "smtp.gmail.com"; String from = "123.digit@gmail.com"; String to = "ae@gmail.com"; // Get system properties Properties properties = System.getProperties(); // Setup mail server properties.setProperty("mail.smtp.host", host); // Get the default Session object. … | |
I use Session Class in javax.mail....but, im getting error duplicate as :- Duplicate local variable session, as HttpSession it uses. So please tell me how to use Session Class in jsp. | |
Hi all, I consider myself an master computer operator, both hardware and software, but I am having a problem it is driving me insane: THE PROBLEM After a short amount of time since starting a session, web-browsing internet connection gets blocked by something. When this happens also AVG updater does … | |
![]() | Hi all, I've hit a brick wall trying to validate some array data. I'll dive right in with the code... [code] <form action="process.php" method="post"> <ul> <li><label>Order: <?php echo $form->error("order"); ?></label><input class="order" type="text" name="task[1][order]" maxlength="3" value="<?php echo $form->value("order"); ?>" /></li> <li><label>Task: <?php echo $form->error("task"); ?></label><input type="text" name="task[1][task]" maxlength="50" value="<?php echo $form->value("task"); … |
Hi I am trying to create a log system were users can log activities, once they are logged in their username is held in a session. My problem is I want them to be able to create a new log by filling out a form but I don't want them … | |
i have a login system in place, i decided it may be a good idea to have a news section, which i can update from my admin login. I created a row called 'tdanews'. now i have manually inserted some info into it, and echo'd it into the users login, … ![]() | |
i write in a.jsp page [code=java]String s1="amrita"; session.setAttribute("ana",s1);[/code] after some statements i write [icode]out.print=(String)session.getAttribute("ana") //it prints the value[/icode] in page b. jsp [icode]out.print=(String)session.getAttribute("ana") //it prints null[/icode] | |
No matter what I try, I keep getting Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in ___ I tried array also, but here's the code for the login page. About 23 lines down. Also, I'm new to PHP, as in, today new. [ICODE] /* Start session … ![]() | |
Hi there, I am still experiencing problems to populate the dropdown menu in my form (mysettings.php) with the correct contents from the database. Herewith is what I have. <?php /********************** MYSETTINGS.PHP*************** *********** This updates user settings and password **************************** ********************** **********/ include 'dbc.php'; page_protect(); $rs_settings = mysql_query ("select * from … ![]() | |
[QUOTE]hi all, i hav a problem so in order to solve that i need to keep the radio button value in a session.but i am not getting it how to keep. so any can can say me.. Thank u.[/QUOTE] [CODE] <?php ob_start(); @session_start(); require_once ("check.php"); include 'connection.php'; $query= mysql_query("SELECT projectassign … | |
String user_src=(String)session.getAttribute("user"); System.out.println(user_src); why i got null on console????? | |
Hello, Just need quick help in PHP + SQL SERVER 2005 DB CONNECTION ...i having problem while connection SQL SERVER 2005 WITH PHP APPLICATION WHICH WORKING PERFECTLY IN LOCALHOST AT MY PC BUT IT NOW NOT WORKING ON THE SERVER SO DON'T KNOW WHATS WRONG ? I THINK ANY SERVER … | |
Hi buddies, I need to pass data among servlets and I find it very hard. What I have so far is passing it via session variable but that crashes my app now and then and seem to be bad approach. How do you transfer data among servlets without crashing the … | |
The other day, when involved in a lengthy text-based chat session with a coworker, I realized (for the first time perhaps) that we need a smarter chat client. I spent a great deal of time and energy attempting to explain a relatively simple concept to my coworker, when it occurred … | |
Hi All, I have JSP and Servlet that need to "talk" to each other. Actually I need to get record from database, fill it in JSP file. I have created Servlet that does the query and gets the result. I need those results to be shown on JSP file. In … | |
i have a [B]sign up [/B]page. when user signup ,his data moves to database'table having 4 colomns.1 is of username,2 of password, 3 of email & last for title. when he signsup,a page [B]choice.html[/B] opens that offers to login now or later. if the user login at that time ,he … |
The End.