3,454 Topics

Member Avatar for
Member Avatar for hajjo

[CODE]<html> <head> <script type="text/javascript"> function formValidator(theForm) { if (theForm.location.value == "") { alert("Please choose a location"); theForm.location.focus(); return (false); } if ( ( theForm.browser[0].checked == false ) && ( theForm.browser[1].checked == false ) && ( theForm.browser[2].checked == false ) && ( theForm.browser[3].checked == false )) { alert("please choose a subscription …

0
64
Member Avatar for phpbeginners

Hi all I am new in php, I want to block the user to return on the previous page? suppose I have page1 when he/she goto page2 he/she cannot return to page1 (session of page1 expired) thanks to all.

Member Avatar for phpbeginners
0
142
Member Avatar for ehsankhan2000

I am running this code It is giving an error which is out of my understanding CODE: [code=jsp]<html> <head> <title>Login Page</title> </head> <body bgcolor="#C0C0C0"> <form method="GET" action="http:\\localhost:8000\login_page.jsp"> <marquee style="font-family:Arial;font-size:14pt;color:#800000;fontstyle: italic;font-weight:bold">eResource System -----&gt;The World of Learning</marquee> <table border="1"width="100%"> <tr> <td width="18%"> <p><font face="Arial"size="2"color="#800000"><b><a HREF="home_page.htm">Home</a></b></font></p> <p><b><font face="Arial"size="2"color="#800000"><a HREF="chart_toppers.jsp">Chart Toppers</a></font></b></p> <p><b><font face="Arial"size="2"color="#800000"><a HREF="search_home_page.htm">Search</a></font></b></p> …

Member Avatar for kvprajapati
0
88
Member Avatar for Member #18352

Is there any way to ensure that a particular code is executed when a session ends e.g to remove temporary files og database entries ? similar to the Session_OnEnd in the global.asa file in an asp application ?

Member Avatar for thewebhostingdi
0
145
Member Avatar for ricksvoid

Although im not new to asp.net, this will be my first e-commerce project. Any thoughts on using paypal? Im very tempted to use it for the sheer simplicity alone. any downfalls? Ive never built my own shopping cart but i could probably figure it out using session states and what …

0
101
Member Avatar for mynameis

I have an uploading script but i don't know what is the problem it always gives "Error". Here is the script [ICODE]<?php include ("include/session.php"); $username = $session->username; if ($_REQUEST[completed] == 1) { $newname = $username . ".gif"; move_uploaded_file($_FILE['mailfile']['tmp_name'], "./$newname") or die("Error"); } ?> <?php if ($_REQUEST[completed] != 1) { ?><b>Please …

Member Avatar for sDJh
0
103
Member Avatar for jeyakannanrd

Please help me. I got this error while uploading in Server. I developed this code in windows based. But the deployed server is Linux Server. In windows server i didn't get this session error. Here is my code: [code=php]<?php session_start(); require_once('l2t_connect.php'); if($_GET['action'] == "send") { if(isset($_REQUEST['btnSend'])) { $key=substr($_SESSION['key'],0,5); $number = …

Member Avatar for cwarn23
0
126
Member Avatar for alsoumhi

Hi experts , I got problem and need help please. I have created a servlet sends a message to the client, I have tried to attach a text file with message being sent but I couldn't do that. please help me how to attach a file with a message. is …

Member Avatar for peter_budo
0
82
Member Avatar for wblakenc

Hello all, I have run into an issue with an JavaScript expand menu (you click a menu option a sub-menu shows, moving the other main navigation menu options down). Well I have designed a nice custom script to do just this. The problem is, how do I keep that sub-menu …

Member Avatar for wblakenc
0
126
Member Avatar for spoinkgeek

hello im doing this assgment.need a solution urgently! Animal Show is organized. There are 2 sessions for the show, which are 2pm-4pm and 8pm-10pm per day. There are only 50 tickets available per session per day. For the show, a ticket for an adult sells for RM10 while for a …

Member Avatar for mypicturefaded
0
388
Member Avatar for shankbond

Hi, I am having a web application, which can be accessed by different users based on their userid's and passwords. Now I want to prevent users from accessing the application from more than one system. In order to prevent this I have created a[B] table with three columns [/B]as : …

Member Avatar for shankbond
0
188
Member Avatar for itisnot_me

ok something went wrong and i cannot for the life of me figure it out. my login script which also logs out will not unset the name and admin i set for it. also on top of that if i do use a session_destory and login again it does not …

Member Avatar for itisnot_me
0
111
Member Avatar for arunajasmine

in my application i am using Ajax post like [CODE] $('#fb_contentarea_col3 #fb_contentarea_col1down2 #saveForm').live("click", function(){ if(!$("#formName").val()==""){ if(saveDraft=='on') status="Incompleted"; else status="Completed"; var formname=$("#formName").val(); $.ajax({ type: "POST", url: "http://localhost/FormBuilder/index.php/forms/saveForm/", async: false, data: "formname="+formname+"&status="+status, success: function(msg){ getformid=msg;//returned FOrm id is saved in the JQuery variable }//success });//ajax $("#fb_contentarea_col1down21 div").each(function() { alert("Form id "+getformid);//alerts me …

Member Avatar for arunajasmine
0
157
Member Avatar for C.c

can help me ?? i want to loop to "Please choose the section you want" after all the calculation, but it only loop to "key in the number of adults"..Please help.. #include <iostream> using namespace std; int main () { int adults1, childrens1, adults2, children2, adultstotal, childrentotal, choices, total_ticket1 = …

Member Avatar for ithelp
0
128
Member Avatar for alsoumhi

Hi experts, I am having a problem with sending mail from servlet I have written this code : [code=Java] import javax.mail.Session; import javax.mail.Message; import javax.mail.Transport; import javax.mail.MessagingException; import javax.mail.internet.MimeMessage; import javax.mail.internet.InternetAddress; import java.util.Properties; public class EmailSenderDemo { public static void main(String[] args) { String from = "ali@mlabs.com"; String to = …

Member Avatar for kvprajapati
0
131
Member Avatar for spalax

Hi, i'm trying to read a simple email file from a folder in my computer. I find this code but, it's not working. i didn't understand theses lines: what should i write for mail.host? what should i write for "mail.transport.protocol", "smtp"? props.put("mail.host", "smtp.gmail.com"); props.put("mail.transport.protocol", "smtp"); [CODE] import java.util.*; import java.io.*; …

Member Avatar for spalax
0
3K
Member Avatar for kprashant1307

I want to send another ajax request when one request is in process to get the status of first request. This is working fine if no session data is set before calling the request. If I set data in session and then call both the request the second request gets …

0
64
Member Avatar for aditi_19

Hi, I have created logout.php page which destroys all the session variables. Basically i want the the user to get directed to the Login page after logout button is pressed. But when the BACK button of the browser is pressed(even after logout), the user is still able to see other …

Member Avatar for aditi_19
0
223
Member Avatar for HughLa

I can't get my sessions to work on my hosting account even though I had my site running perfect on my machine's xampp setup. The sessions just won't last at all. I dont know what the problem is. Is there a setting I have to change or something to make …

Member Avatar for chrishea
0
57
Member Avatar for itisnot_me

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 …

0
50
Member Avatar for skipbales

I read all the thread on a similar post from 2006 but did not find an answer there. I can not redirect on my localhost (Apache) or on my hosted site (Apache). I was using a function created in a php course I took then switched to a basic piece …

Member Avatar for skipbales
0
104
Member Avatar for Sethron

I created a login and registration page with the following code, but it seems to have a syntax error at the command prompt "die ()", and I'm not sure as to how to fix it? Name the table "dbUsers." It will need 4 fields: Name Type Addition id int(10) Primary …

Member Avatar for otakua
0
175
Member Avatar for dpreznik

In my Page_Load() I have the following code: [ICODE]Button btnCancel = wizSummaryDetails.FindControl("FinishNavigationTemplateContainerID").FindControl("CancelButton") as Button; btnCancel.Attributes.Add("onclick", "setSessionAction('NONE');"); [/ICODE] Also, I have the following function that handles clicks on the same button: [ICODE]protected void DetailCancelButton_Click(object sender, EventArgs e) { wizSummaryDetails.MoveTo(wizStepSummary); Session["Action"] = ACTION.NONE; LoadData(); } [/ICODE] But if I have that part …

Member Avatar for jbisono
0
129
Member Avatar for mellomel70

Hi - I have some VB code that I'm trying to translate to c#. The code has a few WMI calls in it, and I'm stuck. Specifically, my VB code has the following: [code=VB] 'identify remote sessions Dim strComputer As String = "." Dim objWMIService As Object = GetObject("winmgmts:\\" & …

0
70
Member Avatar for Kusno

Dear all, I have a problem for my session state. Previously, I used session state InProc, but because CPU usage was very high cause IIS sometimes restarts, so I changed it to SQLServer. but now, session doesnt want to expire even I set timeout to 1 minute !!!. this is …

Member Avatar for kameswari
0
136
Member Avatar for somedude3488

Recently, I started on a new venture in which many sites will be built off the same base files. Pretty much if I change one file it will affect all of my sites. This has its ups and downs, but since the ups outweigh the downs I am going to …

Member Avatar for somedude3488
0
175
Member Avatar for shailesh_singh

i am making a web site that is based on online examination in that i have pro is that how can i imlement the time when a student click on start button after his login.

Member Avatar for Ramesh S
0
40
Member Avatar for sleign

hey I'm having a problem trying to get some variables passed on a form to another page where the processing is handled. basically what I'm trying to do is display the titles of pages from a website that are stored on a mysql database. those titles are passed thru a …

Member Avatar for sajif
0
180
Member Avatar for sureronald

How do I run the gabbage cleaner function in a session class from within the PHP framework. I use GNU/Linux and I have done it through CRON. Any scheduling library available in PHP? Any help will be highly appreciated.

0
65
Member Avatar for BigDan531

hi guys i need some help with my code im new to php and im trying to create a login page. i have created MYSQL database to go along but whenever i try to login - it brings me to myaccount.php and just displays Access Denied no matter what input, …

Member Avatar for pritaeas
0
107
Member Avatar for shahbaz5144842

hi all there ! I have problem with java file object that when ever i want to delete a file from the server i have check whether its exist or not for this i get fileObject.getAbsolute path but it return me wrong path but i get path from db a …

Member Avatar for shahbaz5144842
0
288
Member Avatar for Talguy

If i create a custom session handler that stores my session information in a database and use the normal session variable since I overwritten it would these sessions work across a load balanced web server cluster.

0
57
Member Avatar for toad78

I have a login form that works just fine, except when it forwards to the 'menu.php' page. The 'menu.php' page has a list of links that is suppose to be in relationship to the 'mem_id'. For example, there's a link called 'Profile'. When you hover over the link, it is …

Member Avatar for pritaeas
0
152
Member Avatar for Toxikr3

Hi guys, I have been working on a site and have managed to add a login script. I made an "status" script myself which tells people if a user is online or not. I did that by using database(easiest way I could think of), when person logs in it changes …

Member Avatar for Toxikr3
0
250
Member Avatar for sonia sardana

Default1.aspx [code] protected void Button1_Click1(object sender, EventArgs e) { Session["name"] = TextBox1.Text; Response.Redirect("Default2.aspx"); } [/code] Default2.aspx [code] protected void Page_Load(object sender, EventArgs e) { string sBeforeAbandon; string sAfterAbandon; sBeforeAbandon = Session["name"].ToString (); Session.Abandon(); if (Session["name"] != null) { sAfterAbandon = Session["name"].ToString(); } [/code] Hey frnds Session.Abandon clears all the session …

Member Avatar for sknake
0
89
Member Avatar for ersubhajit

I am getting this problem whenever I login from index.php to admin_area.php. I am giving the codes of the two files. Please help. Index.php [code=php]<?php session_start(); include("../lib/globals.php"); if(isset($_REQUEST['submit'])) { $u_name=$_REQUEST['username']; $pass=$_REQUEST['password']; $sql="select * from `user_table_master` where `user_name`='$u_name' and `password`='$pass'"; $result=mysql_query($sql); $row=mysql_fetch_array($result); $num_of_rows=mysql_num_rows($result); if($num_of_rows>0) { $_SESSION['logged_in']='y'; $_SESSION['user_type']=$row['user_type']; $_SESSION['user_formation']=$row['formation']; $_SESSION['user_name']=$row['user_name']; $_SESSION['name']=$row['name']; $_SESSION['user_id']=$row['user_id']; …

Member Avatar for guru12
0
164
Member Avatar for CoSIS1

Hi everyone; I’ve written the following for some purpose : [CODE] <% Vector v1,v2; String sql; String sqlvsp; sqlvsp= "select distinct(question_text) from question where type = 'UStudent' "; Vector vc=database.jdbcOneRowQuery(sqlvsp); for(int n=0;n<vc.size();n++){ %> <table border="0" width="100%"> <tr> <td colspan="6"><font size="2"><b><% out.print(n+1); %>)<% out.print(vc.get(n)); %></b></font> </td> </tr> <tr> <td></td> <td align="center" …

Member Avatar for peter_budo
0
132
Member Avatar for ashkan3030

Here is the scenario: I have pages that we can add items to "shopping cart",here is the code: [code]List<string> shopingCart = (List<string>)Session["shopingCart"]; if (shopingCart == null) { shopingCart = new List<string>(); Session["shopingCart"] = shopingCart; } shopingCart.Add(Request.QueryString["ID"]);[/code] I store the ID of each product in Session state(which is unique), then I …

Member Avatar for kvprajapati
0
339
Member Avatar for k2k

i just downloaded a login script and the code below is the php backend for the login. It is originally using md5 encryption and decryption for the password. For some reason I want to manage the password without encryption for now. my database has a member with login name and …

Member Avatar for k2k
0
137
Member Avatar for mcco1

I have the next piece of code: [CODE=C++] vector<ChatSession> ssid; void SessionCreator( void *ch ) { vector<string> users; ... ... ... ChatSession cs; // put chat session objects in vector array for (int i = 0; i < (int)users.size(); i++) { const char *t = users[i].data(); char t2[30]; memcpy(t2, t, …

Member Avatar for Ancient Dragon
0
132
Member Avatar for Lolalola

I have heard that there is a general session. Such a session can be seen, the management of all users. But I do not find the information or samples. If it means session fixation or same like that. Would you have examples?

Member Avatar for Airshow
0
37
Member Avatar for shahbaz5144842

hi all there ! I have problem with java file object that when ever i want to delete a file from the server i have check whether its exist or not for this i get fileObject.getAbsolute path but it return me wrong path but i get path from db a …

Member Avatar for ~s.o.s~
0
188
Member Avatar for arvindhar

Hi... I'm using mdaemon 10.0.0... version. for smtp relay. I have problem while relaying mails to aol.com through mifi-microsense.com relay server and it is behind the pix firewall. Error says reverse lookup issue. How do i confirm this problem, this is due to my PTR Record setup issue or some …

Member Avatar for Freaktech
0
187
Member Avatar for xfreebornx

Show for session: 1. 2pm- 4pm 2. 8pm- 10pm 1 -------------------------------------------------------------------------------------------------- Enter number of adult customers 2 Enter number of child customers 1 The receipt for the purchase is: Adult 2 20.00 Children 1 5.00 TOTAL 25.00 Press Y to continue Y --------------------------------------------------------------------------------------------------- Enter number of adult customers 2 Enter …

Member Avatar for Ancient Dragon
0
126
Member Avatar for zeusofolus

Hello All, I am fairly new to PHP ... I am trying to build a basic order form for a small wholesale database and am completely stuck. The function of this page is display items and their price from the database along with an input box that will allow the …

Member Avatar for zeusofolus
0
780
Member Avatar for Lolalola

Hi, When I am using one session all right. But now I have 4 sessions and if they click the Log Out error is thrown: Warning: session_destroy() [function.session-destroy]: Session object destruction failed in D:\wamp\www\index2.php on line 25 25 line is: session_destroy(); My code: [code] if(isset($_GET['Logout'])) { $query = 'UPDATE user …

Member Avatar for Lolalola
0
120
Member Avatar for chrispaul8676

hi there, i am coming up with a login page and i am having problem with the codes while i run the program. The error says, Invalid attempt to read when no data is present.' This errors occurs when i type [B]'gobi' [/B]as the delivery boy. The error says '[B]FirstName'[/B]. …

Member Avatar for kvprajapati
0
159
Member Avatar for nipa.pillai

Below is the scenario.. First Page Second Page Radio button 1 Radio button 2 Submit. I select the first Radio Button and submit and then i go to second page where i have some content. Now when i go back to first page the same radio button which i had …

Member Avatar for kvprajapati
0
262
Member Avatar for pupilstuff

hi guys i just want to perform custom paging in which at the footer of the grid view ,there must be a pager 'pervious/next with numeric' this is what i did [B]in aspx page[/B] [code=asp.net]<asp:GridView ID="TableGridView" OnPageIndexChanging="TableGridView_PageIndexChanging" runat="server" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" > </asp:GridView> <asp:Button ID="btnConnect" runat="server" Style="z-index: 113; left: 260px; …

Member Avatar for Ramy Mahrous
0
149
Member Avatar for dwdata

I have implemented a log-in routine that I thought captured SESSION variable to use through out all my PHP pages of my site. Here is the snippet of code which sets the session variables: [CODE] if($result) { if(mysql_num_rows($result) == 1) { //Login Successful session_regenerate_id(); $member = mysql_fetch_assoc($result); $_SESSION['SESS_MEMBER_ID'] = $member['id']; …

Member Avatar for Member #120589
0
1K

The End.