4,124 Topics

Member Avatar for
Member Avatar for everton.retweets

Hi Everyone, I am trying to create a twitter login app, I have the app created and I can log into my app, But what I would like to do is create a number of session virables so I can use the information in my app. When a user authenticates …

0
102
Member Avatar for Slavi

I installed Kali linux and while i was running as root I installed quite some programs and made graphical changes etc, even changed desktop environment .. then made a new user so I won't be using root and the new user has all the default stuff and no access to …

Member Avatar for Hiroshe
0
279
Member Avatar for giovannitao_1

Hello, I try to explain my situation. I need to insert multilanguage support in my php site. I used this script called common.php: <?php session_start(); header('Cache-control: private'); // IE 6 FIX if(isSet($_GET['lang'])) { $lang = $_GET['lang']; // register the session and set the cookie $_SESSION['lang'] = $lang; setcookie('lang', $lang, time() …

Member Avatar for giovannitao_1
0
195
Member Avatar for ravi142

Hello Everyone. I have make Form with use of set_value('Name'); in codeigniter but In Input type Textarea not given value. **Code:** <?php $last_goals = ''; if($this->session->userdata('user_from') == 'log') //After login value come From db { $last_goals = $getdesired[0]->ds_goals; } else { $last_goals = set_value('career_goals'); // without login this value come …

Member Avatar for ravi142
0
3K
Member Avatar for stokie-rich

Hi Guys, I'm having a few issues, I have managed yo let users register this works fine. But When the registerd user tries to log into the site I'm getting the following error message Warning: mysqli_query() expects at least 2 parameters, 1 given in C:\xampp\htdocs\login.php on line 16 Warning: mysqli_error() …

Member Avatar for Sammys.Man
0
140
Member Avatar for zabi77

i am new to the PHP and i building a website which is mostly copied from diff sources and i want the user who had logged in to be displayed but it does not. here is my HTML for the page <?PHP session_start(); if (!(isset($_SESSION['username']) && $_SESSION['username'] != '')) { …

Member Avatar for hericles
0
189
Member Avatar for SimonIoa

I want to be able to show some .php files before the user logs in I know that the reason we do the session is for ones who are users to see the files but is it possible. I have included the file that connects to teh database session_start(); $session_uid=$_SESSION['uid']; …

Member Avatar for SimonIoa
0
304
Member Avatar for mangel.murti

Hi All PHP , Below is funtion which store product in session. $resource is database link and product just getting product from database for a given $_GET['product_id'].when i am clicking on a single product and adding that in cart it is working. if i add another product so session array …

Member Avatar for mangel.murti
0
142
Member Avatar for Rake$h

hi friend here soved code for textbox data display in Gridview <form id="form1" runat="server"> <asp:TextBox ID="txtAdd1" runat="server"></asp:TextBox> <asp:TextBox ID="txtAdd2" runat="server"></asp:TextBox> <asp:Button ID="Button1" runat="server" Text="show in gridview" onclick="Button1_Click" /><br /> <asp:GridView ID="GridView1" runat="server"> <Columns> <asp:TemplateField HeaderText="Select"> <ItemTemplate> <asp:CheckBox ID="chkbox" runat="server"></asp:CheckBox> <br /> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Remark"> <ItemTemplate> <asp:Label ID="lblremark" runat="server"></asp:Label> </ItemTemplate> …

0
115
Member Avatar for david.roun.7

So, when I run this code on xampp, it works and I can see the variables, without the header. <html> <head> </head> <body> <?php $user=""; $server=""; $db=""; $pass=""; $con=mysqli_connect($server,$user,$pass,$db); $id=$_POST['loginid']; $password=md5($_POST['password']); $result=mysqli_query($con,"SELECT * FROM passwords WHERE userid='$id' AND password='$password'"); session_start(); if($row=mysqli_fetch_array($result)){ require('../connect/registerdb.php'); $rresult=mysqli_query($rcon,"SELECT * FROM registration WHERE userid='$id'"); while($rrow=mysqli_fetch_array($rresult)){ $_SESSION['name']=$rrow['name']; …

Member Avatar for DJBirdi
0
324
Member Avatar for Keith_4

Hello, I need to make a python scrip to perform the following: *I have a list of IP's 1. Read from a text/csv file to input IP #1 into a telnet session. 2. Once the telnet session is initiated I need to run a GET cmd 3. Output the result …

Member Avatar for rubberman
0
53
Member Avatar for iamthwee

Hi guys, I just came across an interesting article regarding codeigniter cookie sessions. http://www.dionach.com/blog/codeigniter-session-decoding-vulnerability It seems it is fixed in 3.0 but I know that version isn't stable. I wonder what Dani thinks about this?

Member Avatar for Dani
0
528
Member Avatar for RikTelner

How much do websites cost? I want to start threads on certain forums and make websites for them. Pretty high quality/high end. I've been Googling so far, but prizes are outragous (4000-12000 dollars sometimes). If I may ask, I'd call 2 different types of requests, could you tell me what …

Member Avatar for BryceWillis
0
231
Member Avatar for Dani

Just upgraded to Firefox 30.0 and sessions no longer seem to work. The cookie just doesn't set. Using `$this->session->set_userdata()` Not using Firebug, although reading on the web indicated it has been a culprit with similar issues.

Member Avatar for Dani
0
380
Member Avatar for ashalatha

This is my csv importinf file how iam inserting data into database. function csvimport() { $data['error'] = ''; //initialize image upload error array to empty $config['upload_path'] = './uploads/'; $config['allowed_types'] = 'csv'; $config['max_size'] = '1000'; $this->load->library('upload', $config); // If upload failed, display error if (!$this->upload->do_upload()) { $data['error'] = $this->upload->display_errors(); } else …

Member Avatar for ashalatha
0
3K
Member Avatar for jKidz

Hi All, I have developed php login system. If user successfully logged in system will create a session call, `$_SESSION['username'];` Now I want to redirect user, if not logged in when try to view specific page. Please help me to write a code. I already wrote a code, but it …

Member Avatar for tapananand
0
249
Member Avatar for iamthwee

Hi I am using codeigniter and I want to use a constant defined in the config>constant file. For example, my color theme for my view might be blue, so I save this in the constants file. define('blue', '#3fsefe'); Now I can use this in all my views... works fine. But …

Member Avatar for iamthwee
0
4K
Member Avatar for eaanscl@ssm@te

<?php session_start(); // JSONURL // function get_html($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_FAILONERROR, 0); $data = curl_exec($ch); curl_close($ch); return $data; } function get_json($url) { $ch = curl_init();

Member Avatar for Tpojka
0
154
Member Avatar for ankit.baphna

I have MySQL search query which takes input from drop down values and pass on values to my search query. This works perfectly on my website. But the same when I run on my Mobile it does not give me results(blank) as well its not consistent in displaying results, means …

Member Avatar for ankit.baphna
0
218
Member Avatar for david.roun.7_1

Ok, so here is the problem. Below is a fairly simple code that will count the number of members registered to a site. The html works just fine but the php doesn't display anything unless I do something like `if($result>0)`--- then it will display everything to the right of the …

Member Avatar for david.roun.7_1
0
1K
Member Avatar for aquilina

i have problem with my index id for class_student.php.. i not sure where it missing smth.. kindly look it for me. there is an error with index id at line 3 which mean $get_id = $_GET['id']; <?php include ('session.php'); ?> <?php $get_id = $_GET['id']; include('header.php'); $user_query = mysql_query("select * from …

Member Avatar for aquilina
0
882
Member Avatar for vinnitro

package controller; import dao.CheckDAO; import entity.Users; import java.io.IOException; import java.sql.Date; import java.text.SimpleDateFormat; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.annotation.Resource; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; import javax.naming.NamingException; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import model.CipherText; import model.UserService; public class …

Member Avatar for stultuske
0
319
Member Avatar for nadiam

hi, i have index.php and home.php. in order to go to home.php users have to login in index.php. but how do i not allow users to be directed to home.php when they type home.php address in the address bar? *am i making sense?*

Member Avatar for nadiam
0
502
Member Avatar for engrjd91

I have the following code,I have created a form for attemting a scheme of changing the password for the user. i have hashed my password and stored it in the database. Now in the database it looks like, "980a3a0b40df9a1". Whenever i enter the changed password in the form it throws …

Member Avatar for engrjd91
0
255
Member Avatar for kindo

Please help with this...say we have few subdomains domains on same server. blog.robots.com chat.robots.com forum.robots.com forum.robot.com generates the session id of a user. I want to share this session id with other domains....blog,chat... All for the purpose of not letting the user login twice on this domain How can I …

Member Avatar for broj1
0
224
Member Avatar for davy_yg

metode image managementnya masih konstruksi Strict Standards: Only variables should be passed by reference in C:\xampp\htdocs\rustoleum\administrator\input_image.php on line 123 Invalid file Data telah tersimpan. Judul Image last uploaded image ---------------------------------------- database: id image path judul 0 bottleAirFreshner.jp Air Freshener 0 Dispenser.jpg Dispenser 0 bottleAirFreshner.jp 0 php.php 0 74.jpg dsad 0 …

0
126
Member Avatar for Christian Joy

i am making an online quiz that has a countdown timer plugin: https://code.google.com/p/jquery-countdown/source/browse/trunk/js/jquery.countdown.js?r=3 everything is fine but if the user log out or close the browser then the timer will reset back to the default given time. i would like to know how to get the value of the timer …

0
115
Member Avatar for bops

Hi, I'm running into a strange issue on my iPage hosted version of my website. When logging into my system, `$_SESSION["id"]` contains the User ID of the logged in user. Somewhere else on my site I am doing something like this to retrieve the ID of a page: if (isset($_GET["id"])) …

Member Avatar for bops
0
149
Member Avatar for Samerases

hello,,,, "BS does not shape web-tunneled/HTTPS traffic Posted by Evgeny on 05 December 2011 21:01:12 The traffic of connections tunneled through the web proxy using CONNECT method (mostly HTTPS) cannot be controlled by web filters due to limitations in ISA/TMG. This unfortunately makes their shaping impossible. Until such connections are …

0
180
Member Avatar for badoosan

I am trying to port some code running on a Linux machine to a Windows 8.1 machine running xampp. I am stumped as to why my cookies aren't getting stored and retrieved. Here's what I'm doing: #!\xampp\perl\bin\perl use CGI; use CGI::Session; my $cgi = new CGI; my $sid = $cgi->cookie("CGISESSID") …

Member Avatar for Taywin
0
263
Member Avatar for Vegito1991

currently i working for a button click event where i want to adding text into textarea content **For example** textbox A = "name" dropdownlist = "string" after click button, it will be come **output** public class abc { private string name; } when i click on the button for second …

Member Avatar for taersious
0
380
Member Avatar for engrjd91

Hello everyone, I have 2 of my php pages. I am starting a session in my first page and setting the setting variables but whenever I am trying to access that variable in the 2nd page it doesn't show an error neither it pops out my desired result. In short …

Member Avatar for faisal.qureshi.7121614
0
308
Member Avatar for engrjd91

I have the following code in my php files, but i am having a following error while loading my page? "Notice: Undefined variable: username in C:\xampp\htdocs\fyp\cms\cms.php on line 48" My page is successfully loading up, but username is not being shown in the page and the error is popped up …

Member Avatar for faisal.qureshi.7121614
0
601
Member Avatar for moone009

This is my main page where the user can choose a category from a drop down. I need that category selection to update my session variable so I can then send that variable to another php page execute a query and return the result in my div because I do …

Member Avatar for moone009
0
396
Member Avatar for fo2sh

Hello, How I can bridge two calls in SIP by sending A party an indication to change SDP to B party and start playing the B party annoucement to A so A party will be hearing the ringing of B or annoucement of B. A Party SIP/GW B Party 1|---------INVITE---------->| …

0
218
Member Avatar for fada397

below is the code which select value from the database and increase it by 2 and update the database with the new value. how do I lock or prevent multiple read and update at the same time? please help Dim query2 As String = "select * from " + usern …

0
189
Member Avatar for nileshbhanu

i have genrate a confirm message for session extend and it work properly. but i want that if user not respond to it than it will automatically hide.i have write following code . if($("#takephotopageload").length > 0) { setInterval(function(){ $.ajax({ url: "check_session.php", //data: {action: 'clickme_clicked'}, dataType: "json", success: function(data) { if(data.time …

Member Avatar for diafol
0
170
Member Avatar for kindo

Hello world, I'm developing two applications: 1. Chat room 2. Forum The two are under the same domain : **chat_room**.ask.com and **forum**.ask.com What I wanna do is this, I want users who login to the forum to at the same time use the chat room without login in again...just like …

Member Avatar for diafol
0
180
Member Avatar for Patrick_6

Hi everyone, I wanted to write C++ a program that's going to logon to my twitter and alert me if I have any new messages or tweets. I found an article that explains how to log on to a website with libcurl, https://www.hackthissite.org/articles/read/1078. Using that article I've written a simple …

Member Avatar for Patrick_6
0
793
Member Avatar for nileshbhanu

i have genrate a confirm message for session extend and it work properly. but i want that if user not respond to it than it will automatically hide.i have write following code . if($("#takephotopageload").length > 0) { setInterval(function(){ $.ajax({ url: "check_session.php", //data: {action: 'clickme_clicked'}, dataType: "json", success: function(data) { if(data.time …

Member Avatar for nileshbhanu
0
135
Member Avatar for neel_143

here is two php pages in which in 1st page i retrieve captcha and submit and in 2nd page it sends to a url n only then i can login to that site the problem is that i retrieve captcha successfully but cant connect to 2nd page its totally lost …

-1
133
Member Avatar for PsychicTide

Hey guys, I'm not very familiar with asp.net (Doing this in c#) or session cookies for that matter, just the basics. Trying to store a list of items in a session cookie, then when needed, pull those items back out as a list to then use them in a MS …

Member Avatar for Daemon_CC
0
327
Member Avatar for PsychicTide

Hey guys, still working on creating some sort of shopping basket and have decided to try using session cookies. I can populate the cookie with at least 1 entry, but either can't seem to convert string <> arraylist correctly or am working with cookies incorrectly. I'm using asp.net/c# and am …

Member Avatar for wazz
0
852
Member Avatar for Lee_7

Hi, I'm trying to working with the Tripletex API. Also see our topic : http://www.daniweb.com/web-development/php/threads/444996/tripletex-with-php When i tried log in, It's ok. and response an array. But the problem is : in the header of this response, i can not see any cookie, session about my log in. So i …

Member Avatar for Lee_7
0
170
Member Avatar for settu

if (con.State == ConnectionState.Open) con.Close(); con.Open(); SqlCommand c = new SqlCommand("select word,category from unwanted", con); //SqlCommand c = new SqlCommand("select word,category from unwanted where word ='"+txtWhatsOnYourHeart.Text+"' ", con); SqlDataReader r = c.ExecuteReader(); // if (r.Read()) while(r.Read()) { al.Add(r[0].ToString()); //a = r[0].ToString(); b = r[1].ToString(); } a = txtWhatsOnYourHeart.Text; int cnt=0; …

Member Avatar for ameerbatcha
0
154
Member Avatar for Mian Sahib Jan

i have a repeater in one page to which me load the data from database now i want to click a button and i get the value of a repeater specific row data and kept data in session and access that data an another page.plz help me any one have …

0
204
Member Avatar for extjac

Hello. I am trying to implement a Laravel API that will be consumed by different clients (domains). The API basically, sends json response to the clients. For instance, when the client app.anyclient.com sends a AJAX/post request to api.myapi.com/login …the API is able to validate and login the user; however, the …

0
115
Member Avatar for Mr.M

Hi Dw I'm creating a web app for my future use and now I'm having a problem in calling a button to enable it. The web app start with Default.aspx and that where a user had to fill in 3 text boxs and click a button. So I've removed the …

Member Avatar for Mr.M
0
431
Member Avatar for jovstudios

Hello Guys, I have a form that i used array name. ei. name[] this is my code for input form {{ Form::open(array('url' => 'create')) }} <TR> <TD><INPUT type="checkbox" name="chk[]"/></TD> <TD class="rating"> {{ Form::text('core_values[]', Input::old('core_values[]'), array('placeholder' => 'Criteria Here')) }}</TD> <TD> {{ Form::textarea('behavioral[]', Input::old('behavioral[]'), array('placeholder' => 'Description Here', 'cols' => '75', …

Member Avatar for veedeoo
0
5K
Member Avatar for joseph.lyons.754

Im tryin to add an admin to my database. Its not working but im not gettin any error messages ive tried a hundred different ways but its always the same it appears to be working but never actually does. Im hoping a more skilled eye can spot my mistake. Thanks …

Member Avatar for GliderPilot
0
270

The End.