4,124 Topics
![]() | |
Below you will find my code, it's not it all in it's entirety, but shows what's important. I have some custom functions that are being used just to note out. What I have my code doing is searching a MySQL table and displaying all of the results based on the … ![]() | |
I'm using a "simple" script that I downloaded for an image galery, since it was a free script there is no support and although the script works great I need a simple modification so people can edit the information they provided with the picture they uploaded. I manage to add … | |
Hi Everyone, i have created a form and placed my CRLViewer control on it, and not a new form. Everytime a search button is pressed the report open. However, i only managing to open the report once in one session. When i click the search button 2nd time i get … | |
Hi when i submit a form the session id changes in a page (and stick the same in single tab for other pages) but it is different in different tabs. how to fix that ? thanks in advance ![]() | |
Hello everyone, I am pretty new to java and i have an assignment that to write the code for clock in and clock out for employee .Down here is my code, and now i am stuck with the while loop to print out the name, like if Bob work on … | |
Ok so my problem is everytime I click my button it re-populates my dropdownlist of my entries, but it also keeps the entries from my previous page_load therefore i get double entries within my dropdownlist. How do I solve this problem as I cannot seem to find where my problem … | |
I'm trying to do, an order and some orderline. Imagine that the user come and select several item from the shop then when he click on the checkout, the reference number in the order is send back to the several item in the orderline table. How would i insert that … | |
Ok so I have created a page where the user enters their details then they click a button which produces their results in a ListBox. However what I want to do is when the user clicks the button it produces the results on another page in a Listbox. I have … | |
Hi, Iam trying to post a form with cookies using [Requests module](http://docs.python-requests.org/en/latest/). When I post the form and see the page with the results, there is an error in the page, saying that I didnt fill one field right. Iam absolute sure I fill that field right. When I post … | |
Guys please help.. It always says "Sorry, cannot log you in. Wrong login information". Thank u.. <?php session_start(); include "dbConfig.php"; if ($_GET["op"] == "login") { if (!$_POST["StudentID"] || !$_POST["password"]) { die("You need to provide a username and password."); } $q = "SELECT * FROM `student` " ."WHERE `StudentID`='".$_POST["StudentID"]."' " ."AND … | |
Hello, I have a really weird problem. I have a web application written in asp.net and it works perfectly locally, the problem appears when I deploy it to my remote server. Everything works fine except for a button, it updates information in a database. The thing is that the problem … | |
Hi there, I have been trying to fix the problem in the below code for a long time, it did work for me at some point. Then, it suddenly stopped storing user's details in a session. $user = $_POST['username']; $pass = $_POST['password']; $query = "SELECT username, password FROM USERS WHERE … ![]() | |
I recently moved one of my sites to a Red Hat server with MySQL 5.0.22 from a Windows XP server with MySQL 5.5.25a. Now whenever I try to log into the site it will not start the session, but it will work on my Windows machine. Is there a difference … | |
hello... i have textbox with update option. when i change the value in textbox then update the session value. how to assign text value to session variable in javascript. this is my script. [CODE] <script>function update_value() { //window.alert(window.document.creditform.quantity.value) if((window.document.creditform.quantity.value=='') || (window.document.creditform.quantity.value=='0')) { window.document.creditform.quantity.value=1; } else { <? $_SESSION['qty']?>window.document.creditform.quantity.value; } }</script>[/CODE] | |
The tiny tots tee-ball league has 12 players who have jersey numbers 0 through 11. The coach wants a program into which he can type a player’s number and the number of bases the player got in a turn at bat (a number 0 through 4). Write a program that … | |
i have a page (APPLYforJOB.aspx), now if an registered user ahs signed in and clicked on APPLY for job Button then he will be promoted to page to fill his info but if he is hasn't logged in then he will be redirected to LOGIN.aspx page, I did it successfully … | |
Hi everybody I am populating an array of structures with info for a product enquiry. <!--- ADD PRODUCT TO CART ARRAY ROUTINE---> <cfif IsDefined("btn_add")> <a href="%5C"> <cfset temp = arrayAppend(session.enquirycontents, structNew())> <cfset session.enquirycontents[arrayLen(session.enquirycontents)].ID = #form.ID#> <cfset session.enquirycontents[arrayLen(session.enquirycontents)].product = #productdetail.product#> <cfset session.enquirycontents[arrayLen(session.enquirycontents)].prodnum = #productdetail.prodnum#> <cfset session.enquirycontents[arrayLen(session.enquirycontents)].quantity = #form.Quantity#> <cfset session.enquirycontents[arrayLen(session.enquirycontents)].dimensions = … | |
Hi there , can anyone tell me easy way to change ""session_save_path("/home/users/web/b1580/glo.uniquelb/cgi-bin/tmp");"" to different session_save_path("/home/XXXX/public_html/cgi-bin/tmp"); there are over 200 files and i dont want to go through each file manually .. any help will be appereciated. | |
Hi, I'm developing a Stock website , What i need when ever i add any product in the list , their seperate page automatically created, Currently i use session or query string for that , what it load all the product on the same page ... which means my site … | |
Hello, I have a Win 7 SP1 Pro PC acting as a file server over a LAN, and usually accessed by other users from their own PC using the **\\\PCName\Foldername** command to open the shared folders. I would like to know if it is possible to use a session timeout … | |
*.cs page code* using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.SqlClient; public partial class advertisementSubmission : System.Web.UI.Page { protected String EmplyrSession; protected int userId; protected void Page_Load(object sender, EventArgs e) { EmplyrSession … | |
Following in nerd tradition, I went to Comic-Con at the Javits Center in NYC this past Saturday. I consider myself a Trekkie (TNG and Voyager) and, while I'm not a comic buff, I do love all of the TV-based Superman shows (The Adventures of Superman, Lois and Clark, Smallville, etc.) … ![]() | |
i stored session variable in string variable in .cs page , but now i want to retrieve that string variable on .aspx page and want to put into selectcommand of sqldatasource how ? | |
This snippet defines a `dir()` function which extends python's builtin `dir()` function by adding options to filter the returned sequence of strings by the means of regular expressions. The main use case is live inspection of python objects and modules during an interactive session with the python interpreter. The idea … | |
am using asp.net 3.5(c#) + sql server 200 DB, doing this GIVES me an error , *Error:The multi-part identifier "email@yahoo.com" could not be bound* why ??? using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; … | |
Hi, This is a part of my code..I'm making a Post form if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) !== '')){ print "<tr><th>Email1: </th> <td><input name=\"email\" type=\"text\" class=\"textfield\" id=\"email\" /></td> </tr>"; print "SESS not set"; //////////////////for test } if(isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) !== '')){ $memberEmail = $_SESSION['SESS_MEMBER_ID']; print $memberEmail;/////////////////for test print "<input name=\"email\" type=\"hidden\" value=\"{$memberEmail}\"class=\"textfield\" … ![]() | |
I have admins who can login to view employment applications. I'd like to have a column which indicates the application has been reviewed by each specific admins. Session variable is holding the admin's login user_id. Is it possible to use one query to select and display list of applicants, plus … | |
Hi Every Body I am facing problem in retreving the data from my mysql table I want to use prepared statement with mysqli for security reason. Here is my code Please give a guidance - <?php $host="localhost"; // Host name $username="**********"; // Mysql username $password="**********"; // Mysql password $db_name="**********"; // … | |
I am currently in the process of creating a open source dating script. I am nearly there. Just one thing that I can see that is an error now. When a user completes there profile, other users can see the answers, but the person who the profile belongs to can't. … | |
can any body explain how to manage sessions in the pages that without login no user must access any page and if tries to access using browser address bar then redirect it's location to login page.....pls do reply what to check to manage this by using session...... ![]() | |
i'm working on a script and I want to make the links such as www.mysite.com/signup. this link for registration. www.mysite.com/user/username and this link for user's profile. the links without any php extension. also when someone request link such as www.mysite.com/signup.php should redirect him to www.mysite.com/signup what I know is I … | |
( ! ) SCREAM: Error suppression ignored for ( ! ) Fatal error: Call to undefined function session_is_registered() in C:\wamp\www\attendance\include\checksession.php on line 3 Call Stack # Time Memory Function Location 1 0.0010 183576 {main}( ) ..\admin.php:0 2 0.0015 185696 include_once( 'C:\wamp\www\attendance\include\checksession.php' ) ..\admin.php:3 <?php session_start(); if( !session_is_registered("ulogin")) { header("Location:login.php?invalid=2"); } … | |
Okay, So I've just started university on a computing course that is pretty much programming-oriented. I'm new to programming and I have a very low confidence when it comes to my knowledge of computing, so forgive me for any mess ups. So on Monday we were told in our Java … | |
Hi, I have made a small program that enables a user to upload an image and gets it sent back to the users email with a watermark on it. The place where the user uploads the image is in an ajax colorbox and in order for it to send the … | |
Hi All See the code give given below. I was fighting with this code since last 5 hours to know why isset() is eveluating the condition as false if value is posted exactly what it shall POST. If I uncomment the line no. - 4,5,6,7,8 and put rest of the … ![]() | |
I'm trying to add 'session ending warning' and 'session expired' pop-ups to a site that displays secure data. The session timeout is after an hour. The pop-ups are controlled by javascript using the code below, which checks the time left in the session every minute. BUT... the call to the … | |
i'm using php 5.4.3, I'm wondering if it's possible to use function session_start(). my idea is to have a login page, then use the username in all pages of the site, the problem is that the $username is not visible in the second page... index.php <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta … | |
I created a class that will handle the session_set_save_handler but after executing session_start i will get server error this is my code, <?php defined('protect')||(header("HTTP/1.0 404 Not Found")); require_once INCLUDES . '/query.php'; class MySQL_Session{ private $dbConnect = null; protected $savePath; protected $sessionName; private $sessionTable; private $sessionColumn; public function __construct() { $c … | |
Hello; While this script working, in case of not to connect a node ("BADYK01","BAGRK01", "BAHLK01", "BAHLK02", "BAHLK03") , it stops. I want it to be continue even if it doesnt connect a node. I mean if it couldnt connect to BAGRK01, I want it to be continue and connect the … | |
Hey everyone, So I have another admin redirect problem. I have a file for user functions and login check/if exists..ect so the other redirect set of PHP paramaters won't work and all I want to do is redirect a user to access a page based on user_level. Whether the user_level … | |
String testHTMLContent = testhtml+productlogo; Message message = new MimeMessage(session); message.setFrom(new InternetAddress(usern)); message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(to)); message.setRecipients(Message.RecipientType.CC,InternetAddress.parse(ccaddr)); message.setSubject(sub); //message.setText(body); // setDebugMsg("Attempting to send..."); Transport transport = session.getTransport("smtps"); MimeMultipart mimeMultipart = new MimeMultipart(); MimeBodyPart msgContent = new MimeBodyPart(); msgContent.setContent(testcontent, "text/plain"); mimeMultipart.addBodyPart(msgContent); MimeBodyPart query = new MimeBodyPart(); query.setHeader("Content-Type", "text/plain"); query.setContent(queryString, "text/plain"); mimeMultipart.addBodyPart(query); MimeBodyPart htmlPart = new … | |
I am building a small social network for my department. I have the homepage as a place where you can make comments and your friends can comment on it. I have 4 tables ...allposts_tb, friendship_tb,response_tb and signup_tb.. The allposts_tb collect the updates and post made by people it has the … | |
hi i'm new to php and i have problem with header i try to redirect to home page but when i use header nothing happend i tried it in anther page and work but i don't know why it don't work here <?php session_start(); ?> <?php ob_start();?> <form action="index.php" method="POST"> … | |
Hey everyone, I'm using sessions in my application which retrieves the questions and answers asked by users. The tricky part here is how I can know how to allow users that they can edit and delete their own posts. As far as it is concerned, I have got this idea … | |
Hi all, i am trying to run the following HTML page which is the memebers area after the user login is sucesful the session is registered please check it and help me:- HTML 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" xml:lang="en" lang="en"> <head> <style type='text/css'> /* … | |
i try different method to hide the "hide" div if status result is "E" i have four status : R ,A , I and E,, if status is E then show the "hide" div other vise hide it,, you people suggest me something, thanks in advance,,, code is here : … | |
Im developing a simple attendance system for my organization im updating the checkin and checkout on session base so when the user get login and its session created i stored the the time in database and when he logout and the session and distroyed i update the field of checkout … | |
Problem Statement - Case Study : Simulation of a Parking System Consider a Parking System with a machine, handling parking process and payment process. This machine has a card slot-in and slot-out, a customer console (keypad and display) for interaction, a cash collector and a cash dispenser. The machine will … | |
I am trying to get a example that came with the card to work to my needs. The card holds personal data, which you can read with a specific card reader. Currently the example will either read to a console window or to a single textbox on a form. My … | |
hi, I installed both codeblocks ans codelite as suggested but these two IDEs are much different from the simple turbo c and I am having some similar problems using the two.:- during the first session i created a workspace and a new project(a console application) a main.c was created by … |
The End.