273 Topics

Member Avatar for
Member Avatar for rubai

I have a problem want to be solved. I have three pages. page1.php, page2.php page1.php has a form with two text field. one text field is for name and another is for number. there is a submit button and a "next" button too. using session I want show given name …

Member Avatar for diafol
0
2K
Member Avatar for rubai

Hi Friends, I have 5 checkboxes. What I want is..... I want to check 3 checkboxes so other 2 will be unchecked. After clicking the next button a table will appear and checked checkboxes will show in one column and unchecked will be another column. Can you give any idea …

Member Avatar for minitauros
0
162
Member Avatar for fheppell

I've got an upload script that generates some stuff in relation to uploads eg File foo.jpg uploaded succesfully<br /> File bar.tiff failed to upload! ... This is all part of a variable called `$message`. How could I pass this to another php script? Thanks for any help

Member Avatar for fheppell
0
197
Member Avatar for akkbkht

Hello. Please guide me how to start a session when a user clicks on login page and the info finds correct? How to check this session on other pages which i want to secure from unauthorised access? if the session found then open this secure page, otherwise redirect the user …

Member Avatar for OsaMasw
0
320
Member Avatar for bfitzgerald

Hi Guys I'm trying to create a page which uses session data to find a user in a database and then sends the events that this user has signed up to. I'm a bit of a newbie and have got very confused with where I am at. I am using …

Member Avatar for bfitzgerald
0
220
Member Avatar for OsaMasw

hello there thanks for help mke in many questions, I've learened a lot from this great community I have question about creating visitor counter,daily,monthly,yearly I've created a counter depending on IP address but all my costomer are in the same IP so this counter will not be accurate, So I …

Member Avatar for OsaMasw
0
2K
Member Avatar for OsaMasw

Hello guys today when i checked my script I noticed my sessions are not protected, when user log in his **username** stored in session variable lets call it $_SESSION['user'], and I use this session variable in many function ex. when uploading a file the name of user taken from session …

Member Avatar for LastMitch
0
204
Member Avatar for Rizi004

Hello everone, I have a webpage that have a form in iframe now the form submit in iframe and check from database and if found the username and password it start session and when i go to another page the session is lost, now how i can maintain session in …

Member Avatar for LastMitch
0
1K
Member Avatar for Venter

<html> <body> <form method="post" action=""> <input type="text" name="customername" required/> <input type="text" name="productname" required/> <input type="text" name="units" required/> <input type="text" name="price" required/> <input type="submit" value="submit"/> </form> <?php if($_POST) { $_SESSION['array']=array(); array_push($_SESSION['array'],($_POST)); print_r($_SESSION['array']); } ?> </body> </html> Here My Need Was i Want To Save the all data which was submitted by …

Member Avatar for masterjiraya
0
295
Member Avatar for nccsbim071

Hi, In my website i have implemented custom session values. In which, on log on i set the session value to some object. This object is used to extract user specific data from db. now the problem is If user logs in with : test1.somesite.com and logs off and again …

Member Avatar for jhoonbey
0
805
Member Avatar for jessicam93xx

Im developing a web chat and was wondering, when Im displaying recent messages how do I get individual usernames to display. For example: when i log in as a user and send a message, it shows that its from me, but when I log in as a different user, all …

Member Avatar for skliz
0
914
Member Avatar for jessicam93xx

I have seen this in a few posts, but i still cant seem to find the problem. Im basically trying to log in to a chat page and don't know what I'm doing wrong. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?php //Start a session session_start(); //Setup and use …

Member Avatar for pritaeas
0
304
Member Avatar for cyberdaemon

Good day, I am facing a trouble with my project. i want to load the database in my session but i dont have idea on how to do it. session["getName"] = _BLL.GetName(_myEntities); Response.Redirect("otherpage.aspx",false); on my master page. myLabel.Text = session["getName"].ToString(); that's my code. i want to get the record on …

Member Avatar for cyberdaemon
0
100
Member Avatar for hallianonline

hello everyone i am facing a little problem I have a 3 dependent selectboxes and i want to save the selected values in the session so user can remember what category i selected before also it prints the last visited link here is my code pelase tell me what code …

Member Avatar for broj1
0
196
Member Avatar for RascelleGrepo

Hi. I am working on my Online Examination project in my web development subject but I am having a hard time to code how to go back to my previous page where I put session on it. my online exam are categorize by subject then inside the subject there is …

Member Avatar for kindo
0
397
Member Avatar for aldm

Hi, I have module that imports data from json file to hash. Json file is pretty big so I don't want loading to take place on every request because it takes some time. It would be best to do this just on server start. I have a class variable in …

Member Avatar for lambing
0
217
Member Avatar for George_91

I'm creating a website which requires a Login. When it logs in the system it creates a Session. But I don't know how to validate my next page. Because if the user types the name of the second page in the browser, it enters without problem. What I want is …

Member Avatar for Webville312
1
23K
Member Avatar for thuogt

aving serious problems with headers and session variables. Read related posts but none helped me. I'm using sessions to store some info about the user logged in e.g. name, user_id, etc. To start with, let's say `$_SESSION['user_id']=6;`. Then let's sat I want to view someone's profile. There is a dropdown …

Member Avatar for pixelsoul
0
278
Member Avatar for nakor77

This snippet will allow you to easily work with session variables in your applications. This example is using a string type but it works the same for any data type, you would just need to change the default return value from string.Empty to something more appropriate.

Member Avatar for LastMitch
0
215
Member Avatar for Dhanish

Hi evry1, I am currently doing an assignment on a video streaming website where I need to register users, log them in and out, upload videos, stream them, comment on them, etc Everything works out fine just tat after some seconds my session gets killed automatically or should I say …

Member Avatar for LastMitch
0
968
Member Avatar for lotpb

<?php session_start(); $_SESSION['form'] = $_POST; ?> <?php if(isset($_POST['First'])) { echo htmlentities ($_POST['First']); }?> <?php */?> <tr valign="baseline"> <td nowrap="nowrap" align="right">Last Name:</td> <td><input type="text" name="Last_Name" id="Last_Name" autofocus value="<?php $_SESSION['form']['Last_Name'] ?>" placeholder="last name" size="32" /></td> </tr> <tr valign="baseline"> <td nowrap="nowrap" align="right">City:</td> <td><select name="LookupCity" id="LookupCity"> <option value="" <?php if (!(strcmp("", $_GET['City']))) {echo "selected=\"selected\"";} …

Member Avatar for broj1
0
480
Member Avatar for mrbarbarik

Hi all, I just want to know if there any asp code can make auto redirect from one page to another page when the session timeout end ? Any solution for this problem ? I need a solution ASAP, so help me please. Thank You.

Member Avatar for remunance
0
127
Member Avatar for PriteshP23

I would like to solved out the SESSION part in ALL files. SESSION is not working properely anymore. In addition, i need to solved out the javascript errors. Objective is to access the *dashboard.php and other pages* from LOGIN.php and CREATEACCOUNT.php **WITH validation and SESSION**. There are two files: login.php …

Member Avatar for PriteshP23
0
2K
Member Avatar for PriteshP23

Session is not working. When user do Sign IN or Sign UP, after that on every page (dashboard.php and configure.php) user email should be displayed. It is not displaying any error but it is not working. I have used md5 method for password. I have problem regarding set session. Let …

Member Avatar for PriteshP23
0
468
Member Avatar for arjani10

Hello! I need help about how can i do my content show just first time, when i click secocond time in that page have a blank page ,and latter appeard that after 1 hour, how can i do whith php code ?Can somebody help me please about it? Thank you …

Member Avatar for diafol
0
216
Member Avatar for pedal123

I also have a string stored in a session variable but can't figure out how to get it back out again... THIS CODE IS PAGE 1. <form action="page1.php" method="post" id="register-form" novalidate="novalidate"> <b>Postcode:</b> <input type="text" name="search" /> (required)<br /> <?php @session_start(); if (empty($_POST['search']) && isset($_POST['submit'])){ echo'Please enter postcode i.e. ZZZZ'; } …

Member Avatar for broj1
0
3K
Member Avatar for jasonmark238

Hi friends, Waht are the differences between Sessions and cookies in PHP? Please explain with examples. Thanks & Regards Jasonmark

Member Avatar for diafol
0
250
Member Avatar for joshl_1995

Hello Community, I want to know if there is a way to use the same session throughout my whole website (eg. main domain and sub domain) using PHP? **NOTE:** I'm using a free hosting website so my website is a subdomain of the host website (eg. "http://mywebsite.hostwebsite.com" (I hope you …

Member Avatar for joshl_1995
0
182
Member Avatar for dancks

My code technically works, as it registers the user, but it won't keep the user logged in. (yes, once a registration is successful, they should be logged into their new account). It should go right to the index page on success and have the user logged in. On failure it …

Member Avatar for Zagga
0
2K
Member Avatar for OsaMasw

Hello there, I have a big big problem in my project, I have a login page , so everyone log in, the **session** will be his **id** $_SESSION['userid'] = $id; till now there is no problems, I put a header file to check the user is logged in or not …

Member Avatar for phorce
0
125

The End.