4,124 Topics

Member Avatar for
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
200
Member Avatar for GraficRegret

I need to cause the back forward and reload buttons to end a web login session and redirect the user to a page or an alert to tell them that they are now logged out. I am not sure how to test for the navigation buttons use with HTML.

Member Avatar for GraficRegret
0
247
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
327
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
296
Member Avatar for shakayu

Hello Friends, Am actually trying to get a Foreign key which is a Primary key in Diagnosis table Controller: <?php class AppTreatment extends CI_Controller { function AppTreatment() { parent::__construct(); $this->view_data['base_url'] = base_url(); $this->load->model('Apptreatment_model'); $this->load->model('Patient_model'); if(!$this->session->userdata('is_logged_in') ){ $this->session->set_flashdata('login_error', TRUE); redirect(base_url() . 'index.php/homepage'); } } function index() { $data['patient']=$this->Patient_model->getAllpatients(); $data['AppTreatment']=$this->Apptreatment_model->findAll(); foreach($data['AppTreatment'] as …

Member Avatar for diafol
0
440
Member Avatar for SQLpower

Hello guys, Long story short, when I register a user on my website, it enters for every single column value 0. It should be due to the fact that's not picking up the data from my registration page? Although, it should be ok as I am only picking up the …

Member Avatar for SQLpower
0
196
Member Avatar for njleye

Dear Expert, Please find below coding as I have a problem in data update as there is no error found but when i update the table it update the table in right table and then it return some thing wrong while returning the records. Kindly help me in this matter. …

Member Avatar for Ketsuekiame
0
178
Member Avatar for Octet

Hello Daniweb, Well... my PDU exploded the other day with a bang and a white flash, took out my entire rack and tripped the main breakers, so since I need to replace this anyway I was thinking of re-designing my home network. At the moment I have two physical servers …

Member Avatar for riahc3
0
220
Member Avatar for prashant9928

here i am showing you the code into which i am getting trouble into "gridWarehouseInsert" command. What i want is when user inser new data into detail table i want to get the MasterTable DataColumn that is "Warehouse_id". so that i can perform insert operation. When user insert master table …

Member Avatar for LastMitch
0
1K
Member Avatar for Troy

class_session.php is a session management and password protection class. It can be used to perform 2 major functions: 1. Create and maintain session state between page hits. The class does this using simple session cache files into which the session is stored as a serialized array. This is similar to …

Member Avatar for LastMitch
1
642
Member Avatar for Social_psych

Hello, Has anyone ever repeatedly wrote to the same text file, using the append mode, and when examining the text file, several lines were missing? Here are the specifics to my code: 1. Each line in the output, the text file, contains data from one experimental session (e.g. the session …

Member Avatar for Social_psych
0
223
Member Avatar for divin757

When I click the login button I never get any values posted to the server. I accept a AuthViewModel but it is always null. I have tried using @html.EditorFor but have not had any luck with it. **User Controller** [HttpGet] public ActionResult Password() { UserModel user = (UserModel)Session[Constants.SessionVars.Authenticate]; //error - …

Member Avatar for BMXDad
0
613
Member Avatar for Venter

hi i'm new to Code Igniter here is my controller for signup & login.i'm having a little problem while working with sessions.when i cal logout function it was redirecting the page to login page with out destructing sessions. after doing logout when i press back button it was displaying the …

Member Avatar for cereal
0
5K
Member Avatar for 68thorby68

I have a small site that is not too data intensive, but requires the user to login to access pages that handle data and pages that interact with the database. To enhance the site security I am hoping to that I do not need to use cookies, instead handle all …

Member Avatar for Webville312
0
137
Member Avatar for rjony321

Hello Masters, I need help.I can't apply **WHERE** Condition clause in my Multiple selected checkbox value.like If i select 'accounitng' or 'php' then i want here use a condition like **WHERE** **("skill", "php")** here, skill table field name and php checkbox selected value.If i select a category 'PHP' so all …

Member Avatar for diafol
0
185
Member Avatar for manchurianCEO

Hi all, I have att internet (not u-verse) just the internet servie with a 2wire modem-router combo. I'm sick and tired of seeing on my computer that the connection was lost just way too often, every 3 or 5 minutes. I went to check on the logs and I see …

Member Avatar for manchurianCEO
0
266
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
3K
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
207
Member Avatar for ganges

Hi, I try to perfom basic CURD operations in hibernate "org.hibernate.InvalidMappingException" this is the error i am getting help me to fix it. i am using eclipse indigo, mysql lib jar files are: ------------------ hibernate 3.jar, asm.jar,cglib - 2.1.jar, commons-logging - 1.0.4.jar, commons-collections-2.1.1.jar, dom4j-1.6.jar, ehcache-1.1.jar, jta.jar, log4j-1.2.9.jar, mysql-connector-java-5.0.8-bin.jar Employee.java package …

Member Avatar for ganges
0
2K
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way for a string ($string) to be remembered on a form submission? Example: <?php $f = ""; $tS = ""; if (isset($_POST['tSubmit1'])) { if (!empty($_POST['tString1'])) { $tS = $_POST['tString1']; $f = "f2"; } } if (isset($_POST['tSubmit2'])) { if (!empty($_POST['tString2'])) { if …

Member Avatar for Webville312
0
211
Member Avatar for nice_true

Hello everyone! I would like to know if there is a way to pass the Id value for an image in gridview through Session to an ashx file.... Here is my vb code in Gridview1_Rowdatabound event if e.row.rowtype=datacontrolrowtype.datarow then dim image as system.image.web.ui.webcontrols.image=ctype(e.row.findcontrol("imgphoto"),system.image.web.ui.webcontrols.image) session("passid")=val(databinder.eval(e.row.dataitem, "id")) image.imageurl="showimage.ashx" And here is my …

Member Avatar for LastMitch
0
165
Member Avatar for elopez2389

I am not sure if this issue is a permissions or code problem. Whenever I run my script I get the following error. Microsoft VBScript runtime error '800a004c' Path not found /build-your-own-report/stjreport/includes/includes.inc, line 16 **Line 16 in my includes file is getting the url path to the temp folder. The …

Member Avatar for LastMitch
0
826
Member Avatar for abhi10kumar

I am sending email with attachments.. but I did not getting any extention in the email.. all the attachments having name **noname** without extention, if I attach mutiple files then the attachmment also have only one file named **noname** without extention too.. <?php if(isset($_POST['send'])) { include('db.php'); $strTo = $_POST["email"]; $strSubject …

Member Avatar for LastMitch
0
139
Member Avatar for shakayu

Hello guys Am still a newbie in php in codeigniter Hmm, am creating a website..for that when a user log in...the session has to be kept..while she is browising between several page in the website. how can i include this? Header or something? I have already do the login part.. …

Member Avatar for shakayu
0
168
Member Avatar for aritanks

I'm working on building a forum in PHP and am trying to include a feature that would log a user out after a certain amount of time. It would also direct them back to the login page after the elapsed time. I've built the forum using separate php pages for …

Member Avatar for lukas.vandendijssel
0
241
Member Avatar for dhani09

This is my first PHP script, to add a user to my website but i keep getting these errors Cannot send session cache limiter - headers already sent Cannot modify header information - headers already sent mysql_num_rows expects parameter 1 to be resource boolean given I have a basic understanding …

Member Avatar for diafol
0
278
Member Avatar for OsaMasw

Hey there guys, I have a strange problem, I have many linux servers (ubuntu) I have a script installed on them all servers works fine but one server dont keep login information, everytime I logged in its says hello to server then back to previous page wothout logging in, I've …

Member Avatar for OsaMasw
0
224
Member Avatar for Paladine

[url="http://../tutorials/tutorial6028.html"]Original thread [/url]- To see why this was Updated [i] Reason for new thread is to start with a clean slate and I will also be providing a tutorial for SQL and possibly Oracle DB connections to show how easy this code is to implement regardless of the DB you …

Member Avatar for maqbul
0
7K
Member Avatar for Webville312

Hello; I am working on a project and in order to save resources, my supervisor says I should pass variables in an array. Some of which were working perfectly. However the fetching of the records from the database gives me the error below; Warning: mysql_query() expects parameter 2 to be …

Member Avatar for Webville312
0
351
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 shakayu

`** login form Hello Guys, am actually working on a website... I want a login on the top left corner...login..then when the user click on this ..a modal form would appear asking them for their user-name & password.. I have a already do the login form controller ?php function index() …

Member Avatar for shakayu
0
963
Member Avatar for kakalahori

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> <!--[if lt IE 7 ]> <html class="no-js loading ie6 oldie" dir="ltr" lang="en-US"> <![endif]--> <!--[if IE 7 ]> <html class="no-js loading ie7 oldie" dir="ltr" lang="en-US"> <![endif]--> <!--[if IE 8 ]> <html class="no-js loading ie8 oldie" dir="ltr" lang="en-US"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--> <html …

Member Avatar for annaharris
0
309
Member Avatar for shakayu

Hello Guys, am actually working on a website... I want a login on the top left corner...*login*..then when the user click on this ..a modal form would appear asking them for their user-name & password.. I have a already do the login form *controller* ?php function index() { $data['main_content'] ='login_form'; …

0
109
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
299
Member Avatar for beginnerpals

This is the php code i have in my logout.php file: <?php session_start(); session_unset(); session_destroy(); header('Location: index.php'); exit(); ?> While starting the session, I set the variables username and password. My logout file isn't working properly. When i click logout, it leads me to my home page (index.php), but on …

Member Avatar for imBaCodes
1
12K
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
823
Member Avatar for Dani

We use CodeIgniter custom session data to handle our login (among many other things). Our settings are as follows: $config['sess_cookie_name'] = 'danisession'; $config['sess_expiration'] = 0; $config['sess_expire_on_close'] = FALSE; $config['sess_encrypt_cookie'] = TRUE; $config['sess_use_database'] = FALSE; $config['sess_table_name'] = 'ci_sessions'; $config['sess_match_ip'] = FALSE; $config['sess_match_useragent'] = FALSE; $config['sess_time_to_update'] = 300; ... $config['csrf_protection'] = true; …

Member Avatar for Mark_k
0
2K
Member Avatar for Jfunch

I was hoping to find someone with shopping cart and paypal experience. I'm learning how to integrate paypal with my website, but I'm having touble getting logging in my mock buyer paypal account from the paypal checkout page. My payment button on my site seems to work fine and takes …

Member Avatar for LastMitch
0
898
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
924
Member Avatar for daniel36

i have created a contact form in which captcha is inplemented.the captcha value is stored in session.i am storing value of session in a hidden input field due to ajax.but when i reload the page the session value in hidden field comes ,old value.here is my form- <?php session_start(); ?> …

Member Avatar for Webville312
0
174
Member Avatar for abhi10kumar

What kind of security measures I have to take to develop Core PHP and MySQL projects ? I used session and encruption, which are basics, there are any security technologies for Core or advanced PHP ?

Member Avatar for broj1
0
225
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
307
Member Avatar for Martin C++

Hello, I want to delete a user from database and destroy the session after he has been idle for some time, lets say 5 mins. How can I do that ? For starters, how to check if the user is idle? I need it mainly for when a user closes …

Member Avatar for pritaeas
0
212
Member Avatar for johndohmen1963

Hi hope someone can help me with the following I am creating a webpage in different language with ip2country. i use the following code COMMON.PHP session_start(); header('Cache-control: private'); // IE 6 FIX header('Content-Type: text/html; charset=UTF-8'); if(isSet($_GET['lang'])) { $lang = $_GET['lang']; // register the session and set the cookie $_SESSION['lang'] = …

Member Avatar for johndohmen1963
0
406
Member Avatar for jaimin4829

## Hi i am trying to get gried view data from data base numericaly onfter another. For example first 5 data then another five (6 to 10) then again. I am trying this by clicking on link button but page can not be refresh..i get id from session in manual …

Member Avatar for RvSon
0
437
Member Avatar for WASDted

[ATTACH=RIGHT]21161[/ATTACH]Power, it’s a dirty word. Power corrupts, and I don’t just mean people and politicians. Power problems, impurities and inconsistencies are a huge contributor to problems with sensitive computer equipment. Power problems can damage hardware as well as your files and data. The losses and downtime that result from power …

Member Avatar for Mastaba
1
2K
Member Avatar for jmw5598

I'm working on a web application for a class of mine. The assignment is to create a College Services app where students can login and register for classes. Right now I'm working on the login portion and it coded out but I'm having some issue and hopeing I get a …

Member Avatar for jmw5598
0
179
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
105
Member Avatar for mr0277

I have a session variable that I set to zero at every Page_Load beginning: Session["DoRefresh"] = "0"; On a dropdown value changed, in the event handler I do: Session["DoRefresh"] = "1"; On the end of aspx page I have a javascript added: function OnRequestEnd(sender, args) { if ('<%= Session["DoRefresh"] != …

Member Avatar for LastMitch
0
206
Member Avatar for glennt

I recently had a strange thing happen in an ASP.Net application I wrote in VB. When each session starts, one of the first thing it does is create a record in a SQL table and captures its ID value, which is an identity field. Two sessions were started very close …

Member Avatar for Airshow
0
341

The End.